Skip to content

Commit

Permalink
print 'worker' join token after swarm init
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
  • Loading branch information
vieux committed Feb 9, 2017
1 parent 487c348 commit 9e940b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/swarm/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 9e940b9

Please sign in to comment.