Display PATH when not finding com.docker.cli, to help debugging

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
This commit is contained in:
Guillaume Tardif 2021-05-03 14:55:41 +02:00
parent 63057f6d1f
commit 0496f29a53
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ func RunDocker(childExit chan bool, args ...string) error {
execBinary, err := resolvepath.LookPath(ComDockerCli)
if err != nil {
fmt.Fprintln(os.Stderr, err)
fmt.Fprintln(os.Stderr, "Current PATH : "+os.Getenv("PATH"))
os.Exit(1)
}
cmd := exec.Command(execBinary, args...)