Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
* 增加 Docker 中文资源链接
* 增加介绍基于 Docker 的 CI/CD 工具 `Drone`
* 增加 `docker secret` 相关内容
* 增加 `docker config` 相关内容
* 增加 `LinuxKit` 相关内容

* 更新 `CoreOS` 章节
* 更新 `etcd` 章节,基于 3.x 版本
Expand All @@ -19,6 +21,9 @@
* 替换 `docker ps` 命令为 `docker container ls`
* 替换 `docker images` 命令为 `docker image ls`

* 修改 `安装 Docker` 一节中部分文字表述

* 移除历史遗留文件和错误的文件
* 优化文字排版
* 调整目录结构
* 修复内容逻辑错误
Expand Down
5 changes: 4 additions & 1 deletion SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
* [部署服务](swarm_mode/deploy.md)
* [使用 compose 文件](swarm_mode/stack.md)
* [管理敏感数据](swarm_mode/secret.md)
* [管理配置信息](swarm_mode/config.md)
* [安全](security/README.md)
* [内核命名空间](security/kernel_ns.md)
* [控制组](security/control_group.md)
Expand Down Expand Up @@ -137,6 +138,8 @@
* [本章小结](cases/os/summary.md)
* [实战案例-CI/CD](cases/ci/README.md)
* [Drone](cases/ci/drone.md)
* [Docker 开源项目](opensource/README.md)
* [LinuxKit](opensource/linuxkit.md)
* [附录](appendix/README.md)
* [附录一:常见问题总结](appendix/faq/README.md)
* [附录二:热门镜像介绍](appendix/repo/README.md)
Expand All @@ -149,6 +152,6 @@
* [WordPress](appendix/repo/wordpress.md)
* [Node.js](appendix/repo/nodejs.md)
* [附录三:Docker 命令查询](appendix/command/README.md)
* [附录四:Dockerfile 最佳实践](appendix/best_practices.md))
* [附录四:Dockerfile 最佳实践](appendix/best_practices.md)
* [附录五:资源链接](appendix/resources/README.md)
* [附录六:Docker 中文资源](appendix/resources/cn.md)
49 changes: 0 additions & 49 deletions _local/.bashrc_docker

This file was deleted.

Binary file removed _local/docker_manual_waitfish.pdf
Binary file not shown.
13 changes: 0 additions & 13 deletions _local/pull_all.sh

This file was deleted.

12 changes: 0 additions & 12 deletions _local/push_all.sh

This file was deleted.

47 changes: 0 additions & 47 deletions _local/push_images.sh

This file was deleted.

126 changes: 0 additions & 126 deletions appendix_command/README.md

This file was deleted.

18 changes: 7 additions & 11 deletions install/centos.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,20 @@ $ sudo yum install -y yum-utils \
lvm2
```

鉴于国内网络问题,强烈建议使用国内源,下面先介绍国内源的使用。

#### 国内源
鉴于国内网络问题,强烈建议使用国内源,官方源请在注释中查看。

执行下面的命令添加 `yum` 软件源:

```bash
$ sudo yum-config-manager \
--add-repo \
https://mirrors.ustc.edu.cn/docker-ce/linux/centos/docker-ce.repo
```

>以上命令会添加稳定版本的 Docker CE yum 源。从 Docker 17.06 开始,edge test 版本的 yum 源也会包含稳定版本的 Docker CE。

#### 官方源

```bash
$ sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
# 官方源
# $ sudo yum-config-manager \
# --add-repo \
# https://download.docker.com/linux/centos/docker-ce.repo
```

如果需要最新版本的 Docker CE 请使用以下命令:
Expand All @@ -55,6 +49,8 @@ $ sudo yum-config-manager \
$ sudo yum-config-manager --enable docker-ce-edge
```

如果需要测试版本的 Docker CE 请使用以下命令:

```bash
$ sudo yum-config-manager --enable docker-ce-test
```
Expand Down
26 changes: 12 additions & 14 deletions install/debian.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,16 @@ $ sudo apt-get install \

```

鉴于国内网络问题,强烈建议使用国内源,下面先介绍国内源的使用。

#### 国内源
鉴于国内网络问题,强烈建议使用国内源,官方源请在注释中查看。

为了确认所下载软件包的合法性,需要添加软件源的 GPG 密钥。

```bash
$ curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/debian/gpg | sudo apt-key add -


# 官方源
# $ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
```

然后,我们需要向 `source.list` 中添加 Docker CE 软件源:
Expand All @@ -73,21 +75,17 @@ $ sudo add-apt-repository \
"deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) \
stable"
```

>以上命令会添加稳定版本的 Docker CE APT 镜像源,如果需要最新版本的 Docker CE 请将 stable 改为 edge 或者 test。从 Docker 17.06 开始,edge test 版本的 APT 镜像源也会包含稳定版本的 Docker CE。

#### 官方源

```bash
$ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -

$ sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
# 官方源
# $ sudo add-apt-repository \
# "deb [arch=amd64] https://download.docker.com/linux/debian \
# $(lsb_release -cs) \
# stable"
```

>以上命令会添加稳定版本的 Docker CE APT 镜像源,如果需要最新或者测试版本的 Docker CE 请将 stable 改为 edge 或者 test。从 Docker 17.06 开始,edge test 版本的 APT 镜像源也会包含稳定版本的 Docker CE。

Debian 7 需要进行额外的操作:

编辑 `/etc/apt/sources.list` 将 deb-src 一行删除或者使用 # 注释。
Expand Down
Loading