You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
Copy file name to clipboardExpand all lines: docker-cloud/cloud-swarm/connect-to-swarm.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,48 @@ To switch back to the deployed swarm, re-run the `export DOCKER_HOST` command wi
99
99
100
100
To learn more, see [Unset environment variables in the current shell](/machine/get-started/#unset-environment-variables-in-the-current-shell).
101
101
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
+

123
+
124
+
2. Choose the swarm you want from the menu.
125
+
126
+

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
+
102
144
## Reconnect a swarm
103
145
104
146
If you accidentally unregister a swarm from Docker Cloud, or decide that you
0 commit comments