func getDockerVersion() string { docker_version := "Unknown" client, err := docker.Client() if err == nil { version, err := client.Version() if err == nil { docker_version = version.Get("Version") } } return docker_version }
func getDockerVersion() string { docker_version := "Unknown" client, err := dclient.NewClient(*docker.ArgDockerEndpoint) if err == nil { version, err := client.Version() if err == nil { docker_version = version.Get("Version") } } return docker_version }