瀏覽代碼

Merge pull request #26028 from londoncalling/docs-pinata-for-swarm

Clarify how to use d4mac, d4win with swarm mode
(cherry picked from commit 6072e6bfd20598f4e9cb28d32c09bfddec6df76c)

Signed-off-by: Charles Smith <charles.smith@docker.com>
Charles Smith 9 年之前
父節點
當前提交
2aa780abe4
共有 2 個文件被更改,包括 7 次插入1 次删除
  1. 6 0
      docs/swarm/swarm-tutorial/create-swarm.md
  2. 1 1
      docs/swarm/swarm-tutorial/index.md

+ 6 - 0
docs/swarm/swarm-tutorial/create-swarm.md

@@ -25,6 +25,12 @@ node. For example, the tutorial uses a machine named `manager1`.
     docker swarm init --advertise-addr <MANAGER-IP>
     ```
 
+    >**Note:** If you are using Docker for Mac or Docker for Windows to test
+single-node swarm, simply run `docker swarm init` with no arguments. There is no
+need to specify ` --advertise-addr` in this case. To learn more, see the topic
+on how to [Use Docker for Mac or Docker for
+Windows](index.md#use-docker-for-mac-or-docker-for-windows) with Swarm.
+
     In the tutorial, the following command creates a swarm on the `manager1`
     machine:
 

+ 1 - 1
docs/swarm/swarm-tutorial/index.md

@@ -83,7 +83,7 @@ mode, including initializing a swarm with a single node, creating services,
 and scaling services. Docker "Moby" on Hyperkit (Mac) or Hyper-V (Windows)
 will serve as the single swarm node.
 
-<p />
+<br /><br />
 
 * Currently, you cannot use Docker for Mac or Windows alone to test a
 _multi-node_ swarm. However, you can use the included version of [Docker