(out io.Writer, unlockKey string)
| 89 | } |
| 90 | |
| 91 | func 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 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…