remove deprecated features: machine and swarm

Signed-off-by: Kang Huaishuai <khs1994@khs1994.com>
pull/494/head
Kang Huaishuai 2021-07-16 12:43:50 +08:00
parent 8dfdbc5b07
commit d4fc0a9da1
No known key found for this signature in database
GPG Key ID: 5E515022F565DA09
10 changed files with 9 additions and 242 deletions

View File

@ -25,7 +25,6 @@ jobs:
"192.168.199.100",\
"github.com/settings",\
"github.com/docker/compose/releases/download",\
"github.com/docker/machine/releases/download",\
"github.com/etcd-io/etcd/releases/download",\
"github.com/tianon/gosu/releases/download",\
"github.com/yeasy/docker_practice",\
@ -65,6 +64,6 @@ jobs:
--allow-dupe \
--skip-save-results \
-t 10 \
`find . \( -path "./mesos" -o -path "./machine" -o -path "./swarm_mode" \) -prune -o -name "*.md" -exec ls {} \;`
`find . \( -path "./mesos" -o -path "./swarm_mode" \) -prune -o -name "*.md" -exec ls {} \;`
name: check-link
timeout-minutes: 25

View File

@ -75,7 +75,7 @@ jobs:
git clone https://github.com/docker-practice/.vuepress .vuepress2
cp -r .vuepress2/. .vuepress/
rm -rf .vuepress2
find . \( -path "./mesos" -o -path "./machine" -o -path "./swarm_mode" -o -path "./node_modules" -o -path "./.vuepress" -o -path "./_book" -o -path "./CHANGELOG.md" -o -path "./CONTRIBUTING.md" \) -prune -o -name "*.md" -exec sed -i 'N;2a\<AdSenseTitle/>\n' {} \;
find . \( -path "./mesos" -o -path "./swarm_mode" -o -path "./node_modules" -o -path "./.vuepress" -o -path "./_book" -o -path "./CHANGELOG.md" -o -path "./CONTRIBUTING.md" \) -prune -o -name "*.md" -exec sed -i 'N;2a\<AdSenseTitle/>\n' {} \;
npx vuepress --version

View File

@ -169,8 +169,3 @@
* [Dockerfile ](appendix/best_practices.md)
* [ Docker](appendix/debug.md)
* [](appendix/resources.md)
* [](archive/README.md)
* [Docker Machine](machine/README.md)
* [](machine/install.md)
* [使](machine/usage.md)
* [Docker Swarm](swarm/README.md)

View File

@ -1,7 +1,7 @@
#
* Docker Machine
* [Docker Machine](https://github.com/yeasy/docker_practice/tree/ca29ab51b121f43563f5d6659dedbda5cb6f048d/machine)
* [Docker Swarm](https://github.com/yeasy/docker_practice/tree/ca29ab51b121f43563f5d6659dedbda5cb6f048d/swarm)
* Mesos
* Docker Swarm

View File

@ -1,9 +0,0 @@
# Docker Machine
![](https://docs.docker.com/machine/img/machine.png)
Docker Machine Docker Orchestration Docker
Docker Machine Go [Github](https://github.com/docker/machine) 上进行维护。
Docker Machine 使

View File

@ -1,33 +0,0 @@
##
Docker Machine LinuxmacOS Windows
### macOSWindows
`Docker Desktop for Mac/Windows` `docker-machine` 使
```bash
$ docker-machine -v
docker-machine version 0.16.1, build cce350d7
```
### Linux
Linux [ GitHub Release](https://github.com/docker/machine/releases) 处直接下载编译好的二进制文件即可。
Linux 64
```bash
$ sudo curl -L https://github.com/docker/machine/releases/download/v0.16.1/docker-machine-`uname -s`-`uname -m` > /usr/local/bin/docker-machine
$ sudo chmod +x /usr/local/bin/docker-machine
```
```bash
$ docker-machine -v
docker-machine version 0.16.1, build cce350d7
```

View File

@ -1,149 +0,0 @@
## 使
Docker Machine
###
#### Virtualbox
使 `virtualbox` Docker test
```bash
$ docker-machine create -d virtualbox test
```
Docker
`--engine-opt dns=114.114.114.114` Docker DNS
`--engine-registry-mirror https://hub-mirror.c.163.com` Docker
`--virtualbox-memory 2048`
`--virtualbox-cpu-count 2` CPU
使 `docker-machine create --driver virtualbox --help`
#### macOS xhyve
`xhyve` GitHub: https://github.com/zchee/docker-machine-driver-xhyve
[`xhyve`](https://github.com/mist64/xhyve) 是 macOS 上轻量化的虚拟引擎,使用其创建的 Docker Machine 较 `VirtualBox` 驱动创建的运行效率要高。
```bash
$ brew install docker-machine-driver-xhyve
$ docker-machine create \
-d xhyve \
# --xhyve-boot2docker-url ~/.docker/machine/cache/boot2docker.iso \
--engine-opt dns=114.114.114.114 \
--engine-registry-mirror https://hub-mirror.c.163.com \
--xhyve-memory-size 2048 \
--xhyve-rawdisk \
--xhyve-cpu-count 2 \
xhyve
```
> `--xhyve-boot2docker-url ~/.docker/machine/cache/boot2docker.iso` GitHub ISO
使 `docker-machine create --driver xhyve --help`
#### Windows 10
Windows 10 Docker Desktop for Windows VirtualBox使 `virtualbox` Docker Machine使 `hyperv`
> `Hyper-V` **** 使 `--hyperv-virtual-switch=MY_SWITCH`
```bash
$ docker-machine create --driver hyperv --hyperv-virtual-switch=MY_SWITCH vm
```
使 `docker-machine create --driver hyperv --help`
### 使
```bash
$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
test - virtualbox Running tcp://192.168.99.187:2376 v17.10.0-ce
```
`env`
```bash
$ docker-machine env test
```
test
`SSH`
```bash
$ docker-machine ssh test
docker@test:~$ docker --version
Docker version 17.10.0-ce, build f4ffd25
```
使 Docker
###
`-d`
* amazonec2
* azure
* digitalocean
* exoscale
* generic
* google
* hyperv
* none
* openstack
* rackspace
* softlayer
* virtualbox
* vmwarevcloudair
* vmwarefusion
* vmwarevsphere
###
[](https://github.com/docker/docker.github.io/blob/master/machine/AVAILABLE_DRIVER_PLUGINS.md) 查看
###
* `active` Docker
* `config`
* `create` Docker
* `env`
* `inspect`
* `ip`
* `kill`
* `ls`
* `provision`
* `regenerate-certs` TLS
* `restart`
* `rm`
* `ssh` SSH
* `scp`
* `mount`
* `start`
* `status`
* `stop`
* `upgrade` Docker
* `url` URL
* `version` docker-machine
* `help`
```bash
$ docker-machine COMMAND --help
```

View File

@ -1,6 +1,5 @@
DOCKER_VERSION=20.10.0
DOCKER_COMPOSE_VERSION=1.27.4
DOCKER_MACHINE_VERSION=0.16.1
ETCD_VERSION=3.4.0
KUBERNETES_VERSION=1.14.3
KUBERNETES_DASHBOARD=2.0.0

View File

@ -1,7 +0,0 @@
# Docker Docker Swarm
Docker Swarm Docker Docker Docker
使 Docker Docker
Docker 1.12.0+ [Swarm mode](https://docs.docker.com/engine/swarm/) 已经内嵌入 Docker 引擎,成为了 docker 子命令 `docker swarm`,绝大多数用户已经开始使用 `Swarm mode`Docker 引擎 API 已经删除 Docker Swarm。为避免大家混淆旧的 `Docker Swarm` 与新的 `Swarm mode`,旧的 `Docker Swarm` 内容已经删除,请查看 `Swarm mode` 一节。

View File

@ -4,20 +4,10 @@
##
[`Docker Machine`](../machine) `Docker Machine` Docker 使 Docker
Docker
Docker
```bash
$ docker-machine create -d virtualbox manager
```
使 `docker swarm init` `Swarm`
```bash
$ docker-machine ssh manager
docker@manager:~$ docker swarm init --advertise-addr 192.168.99.100
$ docker swarm init --advertise-addr 192.168.99.100
Swarm initialized: current node (dxn1zf6l61qsb1josjja83ngz) is now a manager.
To add a worker to this swarm, run the following command:
@ -35,34 +25,16 @@ To add a manager to this swarm, run 'docker swarm join-token manager' and follow
##
`Swarm` Docker
`Swarm` Docker
```bash
$ docker-machine create -d virtualbox worker1
$ docker-machine ssh worker1
docker@worker1:~$ docker swarm join \
$ docker swarm join \
--token SWMTKN-1-49nj1cmql0jkz5s954yi3oex3nedyz0fb0xx14ie39trti4wxv-8vxv8rssmk743ojnwacrr2e7c \
192.168.99.100:2377
This node joined a swarm as a worker.
```
```bash
$ docker-machine create -d virtualbox worker2
$ docker-machine ssh worker2
docker@worker1:~$ docker swarm join \
--token SWMTKN-1-49nj1cmql0jkz5s954yi3oex3nedyz0fb0xx14ie39trti4wxv-8vxv8rssmk743ojnwacrr2e7c \
192.168.99.100:2377
This node joined a swarm as a worker.
```
> `docker-machine create --help` `--swarm*` `Docker Swarm` `Swarm mode`
##
`Swarm`