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 ?
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With