Docker termination container

Docker container stop may be used to terminate the operation of a vessel.

Further, when the end of the application specified Docker containers, the container is automatically terminated.

For example, only the start of the previous section a container terminal, the user terminal to exit through the exit command or the Ctrl + d, the container created immediately terminated.

The container can be seen in the final state with docker container ls -a command. E.g

Container LS -a Docker
CONTAINER ID PORTS the STATUS the IMAGE CREATED the COMMAND NAMES
ba267838cc1b Ubuntu: 14.04 "/ bin / the bash" 30 minutes ago Member the Exited (0) A minute ago Member trusting_newton the About
98e5efa7d997 Training / the webapp: Latest "Python app.py" the About AN hour ago Exited (0) 34 minutes ago backstabbing_pike
container is terminated state, can be restarted by the docker container start command.

Furthermore, the container docker container restart command will terminate a running state, and then restart it.

Guess you like

Origin www.cnblogs.com/snake107/p/11921847.html