Browse Source

Merge pull request #30885 from vieux/restore_join_token

print 'worker' join token after swarm init
Victor Vieux 8 years ago
parent
commit
b847fe563a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cli/command/swarm/init.go

+ 1 - 1
cli/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
 	}