Docker images are not persistent anymore/are disappearing after running "docker system prune". How to make them persistent again?
From the docker documentation of docker system prune-
Remove all unused containers, networks, images (both dangling and unreferenced), and optionally, volumes.$ docker system pruneWARNING! This will remove: - all stopped containers - all networks not used by at least one container - all dangling images - all build cache
The -a option if added -a removes all unused images not just dangling ones. Hence if you want to persist with those images, you should avoid -a option. Looks like "-a" was indeed used which removed the unused images.