mirror of https://github.com/docker/docs.git
fix docker run on an unknown image
This commit is contained in:
parent
db28e839e0
commit
14d9f04e89
|
@ -2009,8 +2009,7 @@ func (cli *DockerCli) CmdRun(args ...string) error {
|
||||||
if body, _, err = cli.call("POST", "/containers/create?"+containerValues.Encode(), config); err != nil {
|
if body, _, err = cli.call("POST", "/containers/create?"+containerValues.Encode(), config); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
} else if err != nil {
|
||||||
if err != nil {
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue