浏览代码

Merge pull request #1626 from gtardif/add_debug_path

Display PATH when not finding com.docker.cli, to help debugging
Nicolas De loof 4 年之前
父节点
当前提交
de8834d434
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      cli/mobycli/exec.go

+ 1 - 0
cli/mobycli/exec.go

@@ -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...)