fix docker run on an unknown image

This commit is contained in:
Victor Vieux 2013-11-25 23:20:36 -08:00 committed by Michael Crosby
parent db28e839e0
commit 14d9f04e89

View file

@ -2009,8 +2009,7 @@ func (cli *DockerCli) CmdRun(args ...string) error {
if body, _, err = cli.call("POST", "/containers/create?"+containerValues.Encode(), config); err != nil {
return err
}
}
if err != nil {
} else if err != nil {
return err
}