mirror of https://github.com/docker/cli.git
Use spaces, not tabs, to format sample "swarm join" command
Using tabs here seems to cause copy/paste problems in some terminals. Using spaces is safer. Fixes #24609 Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
This commit is contained in:
parent
94092e24a7
commit
1210363e0f
|
@ -35,14 +35,14 @@ in the newly created one node Swarm cluster.
|
||||||
```bash
|
```bash
|
||||||
$ docker swarm init --listen-addr 192.168.99.121:2377
|
$ docker swarm init --listen-addr 192.168.99.121:2377
|
||||||
No --secret provided. Generated random secret:
|
No --secret provided. Generated random secret:
|
||||||
4ao565v9jsuogtq5t8s379ulb
|
4ao565v9jsuogtq5t8s379ulb
|
||||||
|
|
||||||
Swarm initialized: current node (1ujecd0j9n3ro9i6628smdmth) is now a manager.
|
Swarm initialized: current node (1ujecd0j9n3ro9i6628smdmth) is now a manager.
|
||||||
|
|
||||||
To add a worker to this swarm, run the following command:
|
To add a worker to this swarm, run the following command:
|
||||||
docker swarm join --secret 4ao565v9jsuogtq5t8s379ulb \
|
docker swarm join --secret 4ao565v9jsuogtq5t8s379ulb \
|
||||||
--ca-hash sha256:07ce22bd1a7619f2adc0d63bd110479a170e7c4e69df05b67a1aa2705c88ef09 \
|
--ca-hash sha256:07ce22bd1a7619f2adc0d63bd110479a170e7c4e69df05b67a1aa2705c88ef09 \
|
||||||
192.168.99.121:2377
|
192.168.99.121:2377
|
||||||
$ docker node ls
|
$ docker node ls
|
||||||
ID HOSTNAME MEMBERSHIP STATUS AVAILABILITY MANAGER STATUS LEADER
|
ID HOSTNAME MEMBERSHIP STATUS AVAILABILITY MANAGER STATUS LEADER
|
||||||
1ujecd0j9n3ro9i6628smdmth * manager1 Accepted Ready Active Reachable Yes
|
1ujecd0j9n3ro9i6628smdmth * manager1 Accepted Ready Active Reachable Yes
|
||||||
|
|
Loading…
Reference in New Issue