Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running multiple time the same docker image

Tags:

docker

I was wondering what is happening exactly when I run the same image (already pull locally) multiple time ?

Does it run the dockerfile each time ? (meaning each command in the docker file)

Does it rerun (restart) the container concerned ?

like image 719
mfrachet Avatar asked Sep 29 '15 08:09

mfrachet


1 Answers

Does it run the dockerfile each time ?

No: a docker run will create a container based on the image.
The Dockerfile was used to build the image, but it not involved at runtime.

Does it rerun (restart) the container concerned?

It create a new container for each docker run.

like image 150
VonC Avatar answered Dec 17 '22 13:12

VonC