File tree Expand file tree Collapse file tree 15 files changed +158
-301
lines changed Expand file tree Collapse file tree 15 files changed +158
-301
lines changed Original file line number Diff line number Diff line change 99 * 增加 Docker 中文资源链接
1010 * 增加介绍基于 Docker 的 CI/CD 工具 ` Drone `
1111 * 增加 ` docker secret ` 相关内容
12+ * 增加 ` docker config ` 相关内容
13+ * 增加 ` LinuxKit ` 相关内容
1214
1315 * 更新 ` CoreOS ` 章节
1416 * 更新 ` etcd ` 章节,基于 3.x 版本
1921 * 替换 ` docker ps ` 命令为 ` docker container ls `
2022 * 替换 ` docker images ` 命令为 ` docker image ls `
2123
24+ * 修改 ` 安装 Docker ` 一节中部分文字表述
25+
26+ * 移除历史遗留文件和错误的文件
2227 * 优化文字排版
2328 * 调整目录结构
2429 * 修复内容逻辑错误
Original file line number Diff line number Diff line change 8686 * [ 部署服务] ( swarm_mode/deploy.md )
8787 * [ 使用 compose 文件] ( swarm_mode/stack.md )
8888 * [ 管理敏感数据] ( swarm_mode/secret.md )
89+ * [ 管理配置信息] ( swarm_mode/config.md )
8990* [ 安全] ( security/README.md )
9091 * [ 内核命名空间] ( security/kernel_ns.md )
9192 * [ 控制组] ( security/control_group.md )
137138 * [ 本章小结] ( cases/os/summary.md )
138139* [ 实战案例-CI/CD] ( cases/ci/README.md )
139140 * [ Drone] ( cases/ci/drone.md )
141+ * [ Docker 开源项目] ( opensource/README.md )
142+ * [ LinuxKit] ( opensource/linuxkit.md )
140143* [ 附录] ( appendix/README.md )
141144 * [ 附录一:常见问题总结] ( appendix/faq/README.md )
142145 * [ 附录二:热门镜像介绍] ( appendix/repo/README.md )
149152 * [ WordPress] ( appendix/repo/wordpress.md )
150153 * [ Node.js] ( appendix/repo/nodejs.md )
151154 * [ 附录三:Docker 命令查询] ( appendix/command/README.md )
152- * [ 附录四:Dockerfile 最佳实践] ( appendix/best_practices.md ) )
155+ * [ 附录四:Dockerfile 最佳实践] ( appendix/best_practices.md )
153156 * [ 附录五:资源链接] ( appendix/resources/README.md )
154157 * [ 附录六:Docker 中文资源] ( appendix/resources/cn.md )
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -27,26 +27,20 @@ $ sudo yum install -y yum-utils \
2727 lvm2
2828```
2929
30- 鉴于国内网络问题,强烈建议使用国内源,下面先介绍国内源的使用。
31-
32- #### 国内源
30+ 鉴于国内网络问题,强烈建议使用国内源,官方源请在注释中查看。
3331
3432执行下面的命令添加 ` yum ` 软件源:
3533
3634``` bash
3735$ sudo yum-config-manager \
3836 --add-repo \
3937 https://mirrors.ustc.edu.cn/docker-ce/linux/centos/docker-ce.repo
40- ```
4138
42- > 以上命令会添加稳定版本的 Docker CE yum 源。从 Docker 17.06 开始,edge test 版本的 yum 源也会包含稳定版本的 Docker CE。
4339
44- #### 官方源
45-
46- ``` bash
47- $ sudo yum-config-manager \
48- --add-repo \
49- https://download.docker.com/linux/centos/docker-ce.repo
40+ # 官方源
41+ # $ sudo yum-config-manager \
42+ # --add-repo \
43+ # https://download.docker.com/linux/centos/docker-ce.repo
5044```
5145
5246如果需要最新版本的 Docker CE 请使用以下命令:
@@ -55,6 +49,8 @@ $ sudo yum-config-manager \
5549$ sudo yum-config-manager --enable docker-ce-edge
5650```
5751
52+ 如果需要测试版本的 Docker CE 请使用以下命令:
53+
5854``` bash
5955$ sudo yum-config-manager --enable docker-ce-test
6056```
Original file line number Diff line number Diff line change @@ -56,14 +56,16 @@ $ sudo apt-get install \
5656
5757```
5858
59- 鉴于国内网络问题,强烈建议使用国内源,下面先介绍国内源的使用。
60-
61- #### 国内源
59+ 鉴于国内网络问题,强烈建议使用国内源,官方源请在注释中查看。
6260
6361为了确认所下载软件包的合法性,需要添加软件源的 GPG 密钥。
6462
6563``` bash
6664$ curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/debian/gpg | sudo apt-key add -
65+
66+
67+ # 官方源
68+ # $ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
6769```
6870
6971然后,我们需要向 ` source.list ` 中添加 Docker CE 软件源:
@@ -73,21 +75,17 @@ $ sudo add-apt-repository \
7375 " deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/$( . /etc/os-release; echo " $ID " ) \
7476 $( lsb_release -cs) \
7577 stable"
76- ```
77-
78- > 以上命令会添加稳定版本的 Docker CE APT 镜像源,如果需要最新版本的 Docker CE 请将 stable 改为 edge 或者 test。从 Docker 17.06 开始,edge test 版本的 APT 镜像源也会包含稳定版本的 Docker CE。
7978
80- #### 官方源
8179
82- ``` bash
83- $ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
84-
85- $ sudo add-apt-repository \
86- " deb [arch=amd64] https://download.docker.com/linux/debian \
87- $( lsb_release -cs) \
88- stable"
80+ # 官方源
81+ # $ sudo add-apt-repository \
82+ # "deb [arch=amd64] https://download.docker.com/linux/debian \
83+ # $(lsb_release -cs) \
84+ # stable"
8985```
9086
87+ > 以上命令会添加稳定版本的 Docker CE APT 镜像源,如果需要最新或者测试版本的 Docker CE 请将 stable 改为 edge 或者 test。从 Docker 17.06 开始,edge test 版本的 APT 镜像源也会包含稳定版本的 Docker CE。
88+
9189Debian 7 需要进行额外的操作:
9290
9391编辑 ` /etc/apt/sources.list ` 将 deb-src 一行删除或者使用 # 注释。
You can’t perform that action at this time.
0 commit comments