File tree Expand file tree Collapse file tree 5 files changed +13
-6
lines changed Expand file tree Collapse file tree 5 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ script:
14
14
- docker run -it --rm -v $PWD:/srv/gitbook-src yeasy/docker_practice build
15
15
after_success :
16
16
- sudo chmod -R 777 _book
17
- - echo "FROM nginx:alpine" >> Dockerfile
17
+ - echo "FROM nginx:1.13.8- alpine" >> Dockerfile
18
18
- echo "COPY _book /usr/share/nginx/html" >> Dockerfile
19
19
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
20
20
- docker build -t dockerpracticecn/docker_practice .
Original file line number Diff line number Diff line change 1
1
## CentOS 安装 Docker CE
2
2
3
+ > 警告:切勿在没有配置 Docker YUM 源的情况下直接使用 yum 命令安装 Docker.
4
+
3
5
### 准备工作
4
6
5
7
#### 系统要求
Original file line number Diff line number Diff line change 1
1
## Debian 安装 Docker CE
2
2
3
+ > 警告:切勿在没有配置 Docker APT 源的情况下直接使用 apt 命令安装 Docker.
4
+
3
5
### 准备工作
4
6
5
7
#### 系统要求
@@ -73,19 +75,18 @@ $ curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/debian/gpg | sudo apt-k
73
75
74
76
``` bash
75
77
$ sudo add-apt-repository \
76
- " deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/$( . /etc/os-release ; echo " $ID " ) \
78
+ " deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/debian \
77
79
$( lsb_release -cs) \
78
80
stable"
79
81
80
-
81
82
# 官方源
82
83
# $ sudo add-apt-repository \
83
84
# "deb [arch=amd64] https://download.docker.com/linux/debian \
84
85
# $(lsb_release -cs) \
85
- # stable"
86
+ # stable"
86
87
```
87
88
88
- > 以上命令会添加稳定版本的 Docker CE APT 镜像源 ,如果需要最新或者测试版本的 Docker CE 请将 stable 改为 edge 或者 test。从 Docker 17.06 开始,edge test 版本的 APT 镜像源也会包含稳定版本的 Docker CE。
89
+ > 以上命令会添加稳定版本的 Docker CE APT 源 ,如果需要最新或者测试版本的 Docker CE 请将 stable 改为 edge 或者 test。从 Docker 17.06 开始,edge test 版本的 APT 源也会包含稳定版本的 Docker CE。
89
90
90
91
Debian 7 需要进行额外的操作:
91
92
Original file line number Diff line number Diff line change 1
1
## 树莓派卡片电脑安装 Docker CE
2
2
3
+ > 警告:切勿在没有配置 Docker APT 源的情况下直接使用 apt 命令安装 Docker.
4
+
3
5
### 系统要求
4
6
5
7
Docker CE 不仅支持 ` x86_64 ` 架构的计算机,同时也支持 ` ARM ` 架构的计算机,本小节内容以树莓派单片电脑为例讲解 ` ARM ` 架构安装 Docker CE。
@@ -56,7 +58,7 @@ $ sudo add-apt-repository \
56
58
# stable"
57
59
```
58
60
59
- > 以上命令会添加稳定版本的 Docker CE APT 镜像源 ,如果需要最新版本的 Docker CE 请将 stable 改为 edge 或者 test。从 Docker 17.06 开始,edge test 版本的 APT 镜像源也会包含稳定版本的 Docker CE。
61
+ > 以上命令会添加稳定版本的 Docker CE APT 源 ,如果需要最新版本的 Docker CE 请将 stable 改为 edge 或者 test。从 Docker 17.06 开始,edge test 版本的 APT 源也会包含稳定版本的 Docker CE。
60
62
61
63
#### 安装 Docker CE
62
64
Original file line number Diff line number Diff line change 1
1
## Ubuntu 安装 Docker CE
2
2
3
+ > 警告:切勿在没有配置 Docker APT 源的情况下直接使用 apt 命令安装 Docker.
4
+
3
5
### 准备工作
4
6
5
7
#### 系统要求
You can’t perform that action at this time.
0 commit comments