mirror of https://github.com/docker/cli.git
print 'worker' join token after swarm init
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
parent
487c3488fe
commit
9e940b9020
|
@ -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)
|
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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue