From 9e940b9020237f13308d2ab1441a011e85abac70 Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Thu, 9 Feb 2017 14:54:05 -0800 Subject: [PATCH] print 'worker' join token after swarm init Signed-off-by: Victor Vieux --- command/swarm/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/swarm/init.go b/command/swarm/init.go index b796022672..59bfa5b620 100644 --- a/command/swarm/init.go +++ b/command/swarm/init.go @@ -78,7 +78,7 @@ func runInit(dockerCli command.Cli, flags *pflag.FlagSet, opts initOptions) erro fmt.Fprintf(dockerCli.Out(), "Swarm initialized: current node (%s) is now a manager.\n\n", nodeID) - if err := printJoinCommand(ctx, dockerCli, nodeID, false, true); err != nil { + if err := printJoinCommand(ctx, dockerCli, nodeID, true, false); err != nil { return err }