mirror of https://github.com/docker/compose.git
Merge pull request #1626 from gtardif/add_debug_path
Display PATH when not finding com.docker.cli, to help debugging
This commit is contained in:
commit
de8834d434
|
@ -89,6 +89,7 @@ func RunDocker(childExit chan bool, args ...string) error {
|
||||||
execBinary, err := resolvepath.LookPath(ComDockerCli)
|
execBinary, err := resolvepath.LookPath(ComDockerCli)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintln(os.Stderr, err)
|
fmt.Fprintln(os.Stderr, err)
|
||||||
|
fmt.Fprintln(os.Stderr, "Current PATH : "+os.Getenv("PATH"))
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
cmd := exec.Command(execBinary, args...)
|
cmd := exec.Command(execBinary, args...)
|
||||||
|
|
Loading…
Reference in New Issue