Browse Source

Merge pull request #2869 from dotcloud/fix-docker-pull-run

fix docker run on an unknown image
Victor Vieux 11 years ago
parent
commit
18d08d0d42
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
 	}