Show the complete docker info command

This commit is contained in:
Ted Yu 2019-10-06 11:26:18 -07:00
parent 469d6db33a
commit 4a26579335

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
}