Browse Source

fix docker run on an unknown image

Victor Vieux 11 years ago
parent
commit
0bb2c0b1d0
1 changed files with 1 additions and 2 deletions
  1. 1 2
      commands.go

+ 1 - 2
commands.go

@@ -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
 	}