current position:Home>Docker container related issues.

Docker container related issues.

2022-02-04 16:33:54 CSDN Q & A

according to image Create a container , Does this container always exist whether it is running or not , Even if you restart the virtual machine, you can start the service directly using this container ?
Once you create a container, you can put image Deleted ? Which directory does this container exist in ?




Take the answer :

The created container can stop 、 start-up . The container will not disappear when it is stopped , Where else did it come from docker restart command .
Even if the virtual machine is restarted , This container will not disappear by itself , You can still restart , Use docker start command .
As long as there is a container , You cannot delete the... That created the container image.
The default container directory is /var/lib/docker/containers/


copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/02/202202041633527002.html

Random recommended