Merge pull request #277 from khs1994/master

This commit is contained in:
Baohua Yang 2017-12-04 20:36:38 +08:00 committed by GitHub
commit 52707276e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 24 additions and 34 deletions

View File

@ -1,5 +1,6 @@
## 如何贡献项目 ## 如何贡献项目
* 领取或创建新的 [Issue](https://github.com/yeasy/docker_practice/issues),如 [issue 235](https://github.com/yeasy/docker_practice/issues/235),添加自己为 Assignee。
* 领取或创建新的 [Issue](https://github.com/yeasy/docker_practice/issues),如 [issue 235](https://github.com/yeasy/docker_practice/issues/235),添加自己为 `Assignee`
* 在 [GitHub](https://github.com/yeasy/docker_practice/fork) 上 `fork` 到自己的仓库,如 `docker_user/docker_practice`,然后 `clone` 到本地,并设置用户信息。 * 在 [GitHub](https://github.com/yeasy/docker_practice/fork) 上 `fork` 到自己的仓库,如 `docker_user/docker_practice`,然后 `clone` 到本地,并设置用户信息。
@ -19,7 +20,7 @@
$ git push $ git push
``` ```
* 在 [GitHub](https://github.com/yeasy/docker_practice/pulls) 上提交 Pull Request添加标签并邀请维护者进行 Review。 * 在 [GitHub](https://github.com/yeasy/docker_practice/pulls) 上提交 `Pull Request`,添加标签,并邀请维护者进行 `Review`
* 定期使用项目仓库内容更新自己仓库内容。 * 定期使用项目仓库内容更新自己仓库内容。

View File

@ -13,11 +13,12 @@
* [ ] Debian 9 * [ ] Debian 9
* [ ] macOS * [ ] macOS
* [ ] Windows 10 * [ ] Windows 10
* [ ] Raspberry Pi (ARM)
* [ ] Others (Pls describe below) * [ ] Others (Pls describe below)
### Docker Version ### Docker Version
<!--如果你的 Docker 版本低于 17.0 请尽可能升级到该版本--> <!--如果你的 Docker 版本低于 17.09 请尽可能升级到该版本-->
<!--if Docker version under 17.0, please upgrade Docker to 17.09--> <!--if Docker version under 17.09, please upgrade Docker to 17.09-->
* [x] 17.11 Edge * [x] 17.11 Edge
* [ ] 17.09 Stable * [ ] 17.09 Stable

2
.gitignore vendored
View File

@ -6,6 +6,4 @@ _book/
*.swp *.swp
*.edx *.edx
.DS_Store .DS_Store
node_modules/ node_modules/

View File

@ -8,6 +8,7 @@
} }
}, },
"plugins": [ "plugins": [
"-livereload",
"image-captions", "image-captions",
"github-buttons", "github-buttons",
"page-treeview" "page-treeview"
@ -20,12 +21,12 @@
"caption": "图 _PAGE_LEVEL_._PAGE_IMAGE_NUMBER_ - _CAPTION_" "caption": "图 _PAGE_LEVEL_._PAGE_IMAGE_NUMBER_ - _CAPTION_"
}, },
"github-buttons": { "github-buttons": {
"repo": "yeasy/docker_practice", "buttons": [{
"types": [ "user": "yeasy",
"star", "repo": "docker_practice",
"watch" "type": "star",
],
"size": "small" "size": "small"
}]
}, },
"page-treeview": { "page-treeview": {
"copyright": "Copyright &#169; yeasy", "copyright": "Copyright &#169; yeasy",

View File

@ -1,12 +0,0 @@
{% extends template.self %}
{% block head %}
{{ super() }}
<style>
@media only screen and (max-width: 640px) {
.book-header .btn[aria-label="github"] {
display: none;
}
}
</style>
{% endblock %}

View File

@ -8,6 +8,7 @@
} }
}, },
"plugins": [ "plugins": [
"-livereload",
"image-captions", "image-captions",
"github-buttons", "github-buttons",
"page-treeview" "page-treeview"
@ -20,12 +21,12 @@
"caption": "图 _PAGE_LEVEL_._PAGE_IMAGE_NUMBER_ - _CAPTION_" "caption": "图 _PAGE_LEVEL_._PAGE_IMAGE_NUMBER_ - _CAPTION_"
}, },
"github-buttons": { "github-buttons": {
"repo": "yeasy/docker_practice", "buttons": [{
"types": [ "user": "yeasy",
"star", "repo": "docker_practice",
"watch" "type": "star",
],
"size": "small" "size": "small"
}]
}, },
"page-treeview": { "page-treeview": {
"copyright": "Copyright &#169; yeasy", "copyright": "Copyright &#169; yeasy",

View File

@ -25,7 +25,7 @@ To add a manager to this swarm, run 'docker swarm join-token manager' and follow
### 增加工作节点 ### 增加工作节点
上一步我们在本机初始化了一个 `Swarm` 集群,拥有了一个管理节点,下面我们使用 [`Docker Machine`](../machine) 创建两个 Docker 主机,并加入到集群中。 上一步我们在本机初始化了一个 `Swarm` 集群,拥有了一个管理节点,在 [`Docker Machine`](../machine) 一节中我们了解到 `Docker Machine` 可以在数秒内创建一个虚拟的 Docker 主机,下面我们使用它来创建两个 Docker 主机,并加入到集群中。
```bash ```bash
$ docker-machine create -d virtualbox worker1 $ docker-machine create -d virtualbox worker1
@ -51,7 +51,7 @@ docker@worker1:~$ docker swarm join \
This node joined a swarm as a worker. This node joined a swarm as a worker.
``` ```
*注意:* 一些细心的读者可能通过 `docker-machine create --help` 查看到 `--swarm*` 等一系列参数。该参数是用于旧的 `Docker Swarm`,与本章所讲的 `Swarm mode` 没有关系。 >注意:一些细心的读者可能通过 `docker-machine create --help` 查看到 `--swarm*` 等一系列参数。该参数是用于旧的 `Docker Swarm`,与本章所讲的 `Swarm mode` 没有关系。
### 查看集群 ### 查看集群