As @gabowsky explains in the comments, yes, Docker will remember.
Using start , stop and restart will NOT destroy the container, therefore, remembering everything, including data (even between rebooting the host). What stop means is to stop the process running inside the container. It's all.
In addition, Docker saves the entire context, variables, etc. in the internal format. You do not need to specify command line arguments again. To find out what Docker knows about your container, you can run docker inspect .
On the contrary, rm destroy everything, including the data that has not been saved, and the container will need to be recreated again (give arguments again this time).
As a final note, you should use names instead of SHA1 when accessing containers on the command line
Aurélien thieriot
source share