mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fixed #910. print user name to docker info output
This commit is contained in:
parent
e54e8fa920
commit
4179f25286
1 changed files with 5 additions and 0 deletions
|
@ -495,6 +495,11 @@ func (cli *DockerCli) CmdInfo(args ...string) error {
|
||||||
fmt.Fprintf(cli.out, "EventsListeners: %d\n", out.NEventsListener)
|
fmt.Fprintf(cli.out, "EventsListeners: %d\n", out.NEventsListener)
|
||||||
fmt.Fprintf(cli.out, "Kernel Version: %s\n", out.KernelVersion)
|
fmt.Fprintf(cli.out, "Kernel Version: %s\n", out.KernelVersion)
|
||||||
}
|
}
|
||||||
|
if cli.authConfig != nil {
|
||||||
|
fmt.Fprintf(cli.out, "Username: %v\n", cli.authConfig.Username)
|
||||||
|
// XXX Should we print registry address even if the user was not logged in?
|
||||||
|
fmt.Fprintf(cli.out, "Registry: %v\n", auth.IndexServerAddress())
|
||||||
|
}
|
||||||
if !out.MemoryLimit {
|
if !out.MemoryLimit {
|
||||||
fmt.Fprintf(cli.err, "WARNING: No memory limit support\n")
|
fmt.Fprintf(cli.err, "WARNING: No memory limit support\n")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue