File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ root@243c32535da7:/#
24
24
25
25
## ` exec ` 命令
26
26
27
- ### -i -t 参数
27
+ ### ` -i ` ` -t ` 参数
28
28
29
29
` docker exec ` 后边可以跟多个参数,这里主要说明 ` -i ` ` -t ` 参数。
30
30
Original file line number Diff line number Diff line change 3
3
可以使用 ` docker container rm ` 来删除一个处于终止状态的容器。例如
4
4
5
5
``` bash
6
- $ docker container rm trusting_newton
6
+ $ docker container rm trusting_newton
7
7
trusting_newton
8
8
```
9
9
Original file line number Diff line number Diff line change 1
1
# 启动容器
2
2
3
- 启动容器有两种方式,一种是基于镜像新建一个容器并启动,另外一个是将在终止状态(` stopped ` )的容器重新启动。
3
+ 启动容器有两种方式,一种是基于镜像新建一个容器并启动,另外一个是将在终止状态(` exited ` )的容器重新启动。
4
4
5
5
因为 Docker 的容器实在太轻量级了,很多时候用户都是随时删除和新创建容器。
6
6
@@ -37,7 +37,7 @@ bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr
37
37
38
38
当利用 ` docker run ` 来创建容器时,Docker 在后台运行的标准操作包括:
39
39
40
- * 检查本地是否存在指定的镜像,不存在就从公有仓库下载
40
+ * 检查本地是否存在指定的镜像,不存在就从 [ ` registry ` ] ( ../repository/README.md ) 下载
41
41
* 利用镜像创建并启动一个容器
42
42
* 分配一个文件系统,并在只读的镜像层外面挂载一层可读写层
43
43
* 从宿主主机配置的网桥接口中桥接一个虚拟接口到容器中去
Original file line number Diff line number Diff line change 9
9
终止状态的容器可以用 ` docker container ls -a ` 命令看到。例如
10
10
11
11
``` bash
12
- docker container ls -a
12
+ $ docker container ls -a
13
13
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
14
14
ba267838cc1b ubuntu:18.04 " /bin/bash" 30 minutes ago Exited (0) About a minute ago trusting_newton
15
15
```
You can’t perform that action at this time.
0 commit comments