print 'worker' join token after swarm init

Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
Victor Vieux 2017-02-09 14:54:05 -08:00
parent 487c3488fe
commit 9e940b9020
1 changed files with 1 additions and 1 deletions

View File

@ -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
}