add docker server version to /info

Signed-off-by: Zhang Kun <zkazure@gmail.com>
This commit is contained in:
Zhang Kun
2015-09-21 21:15:32 +08:00
parent 4a6e8c8f3c
commit 7cf343d106
8 changed files with 9 additions and 1 deletions
+1
View File
@@ -35,6 +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, "Storage Driver: %s\n", info.Driver)
if info.DriverStatus != nil {
for _, pair := range info.DriverStatus {
+1
View File
@@ -215,6 +215,7 @@ type Info struct {
Name string
Labels []string
ExperimentalBuild bool
ServerVersion string
}
// ExecStartCheck is a temp struct used by execStart