mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-24 15:28:54 +00:00
Merge pull request #277 from khs1994/master
This commit is contained in:
commit
52707276e6
5
.github/CONTRIBUTING.md
vendored
5
.github/CONTRIBUTING.md
vendored
@ -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`。
|
||||||
|
|
||||||
* 定期使用项目仓库内容更新自己仓库内容。
|
* 定期使用项目仓库内容更新自己仓库内容。
|
||||||
|
|
||||||
|
5
.github/ISSUE_TEMPLATE.md
vendored
5
.github/ISSUE_TEMPLATE.md
vendored
@ -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
2
.gitignore
vendored
@ -6,6 +6,4 @@ _book/
|
|||||||
*.swp
|
*.swp
|
||||||
*.edx
|
*.edx
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
|
||||||
node_modules/
|
node_modules/
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"plugins": [
|
"plugins": [
|
||||||
|
"-livereload",
|
||||||
"image-captions",
|
"image-captions",
|
||||||
"github-buttons",
|
"github-buttons",
|
||||||
"page-treeview"
|
"page-treeview"
|
||||||
@ -20,17 +21,17 @@
|
|||||||
"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 © yeasy",
|
"copyright": "Copyright © yeasy",
|
||||||
"minHeaderCount": "2",
|
"minHeaderCount": "2",
|
||||||
"minHeaderDeep": "2"
|
"minHeaderDeep": "2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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 %}
|
|
15
book.json
15
book.json
@ -8,6 +8,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"plugins": [
|
"plugins": [
|
||||||
|
"-livereload",
|
||||||
"image-captions",
|
"image-captions",
|
||||||
"github-buttons",
|
"github-buttons",
|
||||||
"page-treeview"
|
"page-treeview"
|
||||||
@ -20,17 +21,17 @@
|
|||||||
"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 © yeasy",
|
"copyright": "Copyright © yeasy",
|
||||||
"minHeaderCount": "2",
|
"minHeaderCount": "2",
|
||||||
"minHeaderDeep": "2"
|
"minHeaderDeep": "2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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` 没有关系。
|
||||||
|
|
||||||
### 查看集群
|
### 查看集群
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user