We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d70f7c commit be6f4cdCopy full SHA for be6f4cd
1 file changed
cli/command/system/info.go
@@ -253,11 +253,11 @@ func prettyPrintServerInfo(dockerCli command.Cli, info *info) []error {
253
printSwarmInfo(dockerCli, *info.Info)
254
255
if len(info.Runtimes) > 0 {
256
- fmt.Fprint(dockerCli.Out(), " Runtimes:")
+ names := make([]string, 0, len(info.Runtimes))
257
for name := range info.Runtimes {
258
- fmt.Fprintf(dockerCli.Out(), " %s", name)
+ names = append(names, name)
259
}
260
- fmt.Fprint(dockerCli.Out(), "\n")
+ fmt.Fprintln(dockerCli.Out(), " Runtimes:", strings.Join(names, " "))
261
fmt.Fprintln(dockerCli.Out(), " Default Runtime:", info.DefaultRuntime)
262
263
0 commit comments