mirror of
https://github.com/docker/cli.git
synced 2026-01-22 03:22:01 +03:00
Merge pull request #30885 from vieux/restore_join_token
print 'worker' join token after swarm init Upstream-commit: b847fe563af6c00531b08e00a9b44e6b43cb9bd9 Component: engine
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user