mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Merge pull request #83548 from yutedz/docker-info-cmd
Show the complete docker info command
This commit is contained in:
commit
cd1fbf7cd4
@ -48,7 +48,7 @@ func GetCgroupDriverDocker(execer utilsexec.Interface) (string, error) {
|
|||||||
func callDockerInfo(execer utilsexec.Interface) (string, error) {
|
func callDockerInfo(execer utilsexec.Interface) (string, error) {
|
||||||
out, err := execer.Command("docker", "info", "-f", "{{.CgroupDriver}}").Output()
|
out, err := execer.Command("docker", "info", "-f", "{{.CgroupDriver}}").Output()
|
||||||
if err != nil {
|
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
|
return string(out), nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user