From 82531f71681c9b5bc5a6c871f81ef67f9e92d708 Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Mon, 6 Jan 2014 11:11:04 -0800 Subject: [PATCH] fix error on docker wait --- commands.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/commands.go b/commands.go index aab0bb963a..95098ffd43 100644 --- a/commands.go +++ b/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