+2 votes
in Continuous Integration by

What is the difference between a Docker image and a container? What is the difference between a Docker image and a container?

1 Answer

0 votes
by

An instance of an image is called a container. You have an image, which is a set of layers. If you start this image, you have a running container of this image. You can have many running containers of the same image.

You can see all your images with docker images whereas you can see your running containers with docker ps (and you can see all containers with docker ps -a).

So a running instance of an image is a container.

Related questions

0 votes
asked Jun 30, 2022 in Docker by sharadyadav1986
0 votes
asked Nov 27, 2019 in DevOps by rajeshsharma
...