Skip to content

Commit e198aff

Browse files
added topic on connecting to a Cloud swarm on d4mac, d4win (docker#3594)
* added topic on connecting to a Cloud swarm on d4mac, d4win Signed-off-by: Victoria Bialas <victoria.bialas@docker.com> * review comments re: desktop app menus Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
1 parent df8c9c3 commit e198aff

5 files changed

Lines changed: 42 additions & 0 deletions

File tree

docker-cloud/cloud-swarm/connect-to-swarm.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,48 @@ To switch back to the deployed swarm, re-run the `export DOCKER_HOST` command wi
9999
100100
To learn more, see [Unset environment variables in the current shell](/machine/get-started/#unset-environment-variables-in-the-current-shell).
101101
102+
## Use Docker for Mac and Windows (Edge) to connect to swarms
103+
104+
On Docker for Mac and Docker for Windows current Edge releases,
105+
you can access your Docker Cloud account and connect directly to your swarms through those Docker desktop application menus.
106+
107+
* See [Docker Cloud (Edge feature) in Docker for Mac topics](/docker-for-mac/#docker-cloud-edge-feature)
108+
109+
* See [Docker Cloud (Edge feature) in Docker for Windows topics](/docker-for-windows/#docker-cloud-edge-feature)
110+
111+
> **Tip**: This is different from using Docker for Mac or Windows with
112+
Docker Machine as described in previous examples. Here, we are
113+
by-passing Docker Machine, and using the desktop Moby VM directly, so
114+
there is no need to manually set shell environment variables.
115+
116+
This works the same way on both Docker for Mac and Docker for Windows.
117+
118+
Here is an example, showing the Docker for Mac UI.
119+
120+
1. Make sure you are logged in to your Docker Cloud account on the desktop app.
121+
122+
![Docker for Mac Cloud login](images/d4mac-cloud-login.png)
123+
124+
2. Choose the swarm you want from the menu.
125+
126+
![Docker for Mac Cloud login](images/d4mac-swarm-connect.png)
127+
128+
3. A new terminal window opens and connects to the swarm you chose. The swarm name is shown at the prompt. For this example, we connected to `vote-swarm`.
129+
130+
```shell
131+
[vote-swarm] ~
132+
```
133+
134+
4. Now, you can run `docker node ls` to verify that the swarm is running.
135+
136+
```shell
137+
[vote-swarm] ~ $ docker node ls
138+
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS
139+
7ex8inrg8xzgonaunwp35zxfl ip-172-31-6-204.us-west-1.compute.internal Ready Active
140+
ec3kxibdxqhgw5aele7x853er * ip-172-31-0-178.us-west-1.compute.internal Ready Active Leader
141+
z4ngrierv27wdm6oy0z3t9r1z ip-172-31-31-240.us-west-1.compute.internal Ready Active
142+
```
143+
102144
## Reconnect a swarm
103145
104146
If you accidentally unregister a swarm from Docker Cloud, or decide that you
24.7 KB
Loading
39.3 KB
Loading
211 KB
Loading
159 KB
Loading

0 commit comments

Comments
 (0)