diff --git a/commands.go b/commands.go index 167d33ce1d..387717f360 100644 --- a/commands.go +++ b/commands.go @@ -495,6 +495,7 @@ func (cli *DockerCli) CmdInfo(args ...string) error { fmt.Fprintf(cli.out, "EventsListeners: %d\n", out.NEventsListener) fmt.Fprintf(cli.out, "Kernel Version: %s\n", out.KernelVersion) } + if len(out.IndexServerAddress) != 0 { u := cli.configFile.Configs[out.IndexServerAddress].Username if len(u) > 0 {