docker_practice/container/stop.md

20 lines
951 B
Go
Raw Normal View History

#
2017-11-24 12:30:38 +08:00
使 `docker container stop`
2014-09-15 21:25:36 +08:00
Docker
2017-11-24 12:30:38 +08:00
`exit` `Ctrl+d` 退
`docker container ls -a`
2017-11-24 12:30:38 +08:00
2017-11-13 18:54:38 +08:00
```bash
docker container ls -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2018-12-19 17:24:52 +08:00
ba267838cc1b ubuntu:18.04 "/bin/bash" 30 minutes ago Exited (0) About a minute ago trusting_newton
```
`docker container start`
`docker container restart`