Sfoglia il codice sorgente

fix error on docker wait

Victor Vieux 11 anni fa
parent
commit
82531f7168
1 ha cambiato i file con 1 aggiunte e 5 eliminazioni
  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