This commit is contained in:
khs1994
2017-11-13 18:54:38 +08:00
parent f838297f05
commit d1a640f383
16 changed files with 134 additions and 133 deletions

View File

@@ -5,8 +5,8 @@
例如对于上一章节中只启动了一个终端的容器,用户通过 `exit` 命令或 `Ctrl+d` 来退出终端时,所创建的容器立刻终止。
终止状态的容器可以用 `docker ps -a` 命令看到。例如
```
sudo docker ps -a
```bash
docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ba267838cc1b ubuntu:14.04 "/bin/bash" 30 minutes ago Exited (0) About a minute ago trusting_newton
98e5efa7d997 training/webapp:latest "python app.py" About an hour ago Exited (0) 34 minutes ago backstabbing_pike