How do you create a new Docker image for an existing container including all changes done to the container?

Experience Level: Junior
Tags: DockerDocker CLI

Answer

docker commit <container-id> <username/new-image-name>
Related Docker job interview questions

Comments

No Comments Yet.
Be the first to tell us what you think.
Docker for beginners
Docker for beginners

Are you learning Docker ? Try our test we designed to help you progress faster.

Test yourself