You have started a container in Docker, made configuration changes to it, and stopped the container. You notice the next time that you execute the docker run command, the changes have not persisted.
What is the problem?
Docker containers are designed to be ephemeral, meaning they run based on their current configuration. When a Docker container is stopped, it does not automatically save changes made during its runtime. When you executedocker run, it starts a new instance of the container, not an existing version with its changes[14-16]. If you want to persist changes between runs, you need to commit changes to a new Docker image or use Docker volumes for data persistence[14-16]. Reference from Juniper site: Stack Overflow, Docker Docs
Currently there are no comments in this discussion, be the first to comment!