diff --git a/README.md b/README.md index b63e46f564..a2fb8a7130 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ $ swarm create # on each of your nodes, start the swarm agent # doesn't have to be public (eg. 192.168.0.X), # as long as the swarm manager can access it. -$ swarm join --addr= --discovery=token:// +$ swarm join --addr= token:// # start the manager on any machine or your laptop $ swarm manage -H tcp:// token:// @@ -58,7 +58,7 @@ $ docker -H tcp:// logs ... ... # list nodes in your cluster -$ swarm list --discovery=token:// +$ swarm list token:// ``` diff --git a/userguide.md b/userguide.md index 310c339fa2..a20e5a2e9f 100644 --- a/userguide.md +++ b/userguide.md @@ -56,10 +56,10 @@ $ swarm create # For each of your nodes, start a swarm agent # the Docker daemon doesn't have to be public (eg. 192.168.0.X), # as long as the swarm manager can access it. -$ swarm join --addr= --discovery token:// +$ swarm join --addr= token:// # start the manager on any machine or your laptop -$ swarm manage -H tcp:// --discovery token:// +$ swarm manage -H tcp:// token:// # use the regular docker cli $ docker -H tcp:// info @@ -69,7 +69,7 @@ $ docker -H tcp:// logs ... ... # list nodes in your cluster -$ swarm list --discovery token:// +$ swarm list token:// ```