MCPcopy Index your code
hub / github.com/docker/cli / printUnlockCommand

Function printUnlockCommand

cli/command/swarm/unlock_key.go:91–98  ·  view source on GitHub ↗
(out io.Writer, unlockKey string)

Source from the content-addressed store, hash-verified

89}
90
91func printUnlockCommand(out io.Writer, unlockKey string) {
92 if len(unlockKey) > 0 {
93 _, _ = fmt.Fprintf(out, "To unlock a swarm manager after it restarts, "+
94 "run the `docker swarm unlock`\ncommand and provide the following key:\n\n %s\n\n"+
95 "Remember to store this key in a password manager, since without it you\n"+
96 "will not be able to restart the manager.\n", unlockKey)
97 }
98}

Callers 3

runUpdateFunction · 0.85
runInitFunction · 0.85
runUnlockKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…