Merge pull request #83548 from yutedz/docker-info-cmd

Show the complete docker info command
This commit is contained in:
Kubernetes Prow Robot 2019-10-06 16:29:08 -07:00 committed by GitHub
commit cd1fbf7cd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ func GetCgroupDriverDocker(execer utilsexec.Interface) (string, error) {
func callDockerInfo(execer utilsexec.Interface) (string, error) {
out, err := execer.Command("docker", "info", "-f", "{{.CgroupDriver}}").Output()
if err != nil {
return "", errors.Wrap(err, "cannot execute 'docker info'")
return "", errors.Wrap(err, "cannot execute 'docker info -f {{.CgroupDriver}}'")
}
return string(out), nil
}