Register to Better Coder! It's free.
Enjoy the premium features and succeed at every job interview.

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


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


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