What is the difference between Docker image and Docker container?

0

Docker container is simply an instance of a Docker image. A Docker image is an immutable file, which is a snapshot of a container. We create an image with the build command. When we use the run command, an Image will produce a container.
In a programming language, an Imageisa Class and a Container are instances of the class.

Devops docker
asked Apr 30, 2023 at 20:29
Sign in to add a comment

0 Answers

0
📝 No answers yet!

Be the first to answer this interview question.

Your Answer

Sign in to post your answer and help the community.