diff --git a/cli/command/system/version.go b/cli/command/system/version.go index 4cb34a0273..11692a7059 100644 --- a/cli/command/system/version.go +++ b/cli/command/system/version.go @@ -16,6 +16,7 @@ import ( flagsHelper "github.com/docker/cli/cli/flags" "github.com/docker/cli/cli/version" "github.com/docker/cli/templates" + "github.com/docker/docker/api" "github.com/docker/docker/api/types" "github.com/pkg/errors" "github.com/spf13/cobra" @@ -89,13 +90,15 @@ type clientVersion struct { // information. func newClientVersion(contextName string, dockerCli command.Cli) clientVersion { v := clientVersion{ - Version: version.Version, - GoVersion: runtime.Version(), - GitCommit: version.GitCommit, - BuildTime: reformatDate(version.BuildTime), - Os: runtime.GOOS, - Arch: arch(), - Context: contextName, + Version: version.Version, + APIVersion: api.DefaultVersion, + DefaultAPIVersion: api.DefaultVersion, + GoVersion: runtime.Version(), + GitCommit: version.GitCommit, + BuildTime: reformatDate(version.BuildTime), + Os: runtime.GOOS, + Arch: arch(), + Context: contextName, } if version.PlatformName != "" { v.Platform = &platformInfo{Name: version.PlatformName}