mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #16998 from vieux/engine_version
only display 'Engine Version' when it's not empty
This commit is contained in:
commit
9216b08536
4 changed files with 4 additions and 4 deletions
|
@ -35,7 +35,7 @@ func (cli *DockerCli) CmdInfo(args ...string) error {
|
|||
|
||||
fmt.Fprintf(cli.out, "Containers: %d\n", info.Containers)
|
||||
fmt.Fprintf(cli.out, "Images: %d\n", info.Images)
|
||||
fmt.Fprintf(cli.out, "Engine Version: %s\n", info.ServerVersion)
|
||||
ioutils.FprintfIfNotEmpty(cli.out, "Server Version: %s\n", info.ServerVersion)
|
||||
ioutils.FprintfIfNotEmpty(cli.out, "Storage Driver: %s\n", info.Driver)
|
||||
if info.DriverStatus != nil {
|
||||
for _, pair := range info.DriverStatus {
|
||||
|
|
|
@ -22,7 +22,7 @@ For example:
|
|||
$ docker -D info
|
||||
Containers: 14
|
||||
Images: 52
|
||||
Engine Version: 1.9.0
|
||||
Server Version: 1.9.0
|
||||
Storage Driver: aufs
|
||||
Root Dir: /var/lib/docker/aufs
|
||||
Backing Filesystem: extfs
|
||||
|
|
|
@ -188,7 +188,7 @@ These labels appear as part of the `docker info` output for the daemon:
|
|||
$ docker -D info
|
||||
Containers: 12
|
||||
Images: 672
|
||||
Engine Version: 1.9.0
|
||||
Server Version: 1.9.0
|
||||
Storage Driver: aufs
|
||||
Root Dir: /var/lib/docker/aufs
|
||||
Backing Filesystem: extfs
|
||||
|
|
|
@ -33,7 +33,7 @@ Here is a sample output:
|
|||
# docker info
|
||||
Containers: 14
|
||||
Images: 52
|
||||
Engine Version: 1.9.0
|
||||
Server Version: 1.9.0
|
||||
Storage Driver: aufs
|
||||
Root Dir: /var/lib/docker/aufs
|
||||
Dirs: 80
|
||||
|
|
Loading…
Add table
Reference in a new issue