瀏覽代碼

fix error on docker wait

Victor Vieux 11 年之前
父節點
當前提交
82531f7168
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      commands.go

+ 1 - 5
commands.go

@@ -2510,11 +2510,7 @@ func (cli *DockerCli) LoadConfigFile() (err error) {
 func waitForExit(cli *DockerCli, containerId string) (int, error) {
 	body, _, err := cli.call("POST", "/containers/"+containerId+"/wait", nil)
 	if err != nil {
-		// If we can't connect, then the daemon probably died.
-		if err != ErrConnectionRefused {
-			return -1, err
-		}
-		return -1, nil
+		return -1, err
 	}
 
 	var out APIWait