mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Remove useless code in client implementation of 'run'.
This facilitates refactoring commands.go. Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
This commit is contained in:
parent
28e4de8bfa
commit
e3140e1e69
1 changed files with 1 additions and 6 deletions
|
@ -1993,12 +1993,7 @@ func (cli *DockerCli) CmdRun(args ...string) error {
|
|||
stream, statusCode, err := cli.call("POST", "/containers/create?"+containerValues.Encode(), config, false)
|
||||
//if image not found try to pull it
|
||||
if statusCode == 404 {
|
||||
_, tag := utils.ParseRepositoryTag(config.Image)
|
||||
if tag == "" {
|
||||
tag = DEFAULTTAG
|
||||
}
|
||||
|
||||
fmt.Fprintf(cli.err, "Unable to find image '%s' (tag: %s) locally\n", config.Image, tag)
|
||||
fmt.Fprintf(cli.err, "Unable to find image '%s' locally\n", config.Image)
|
||||
|
||||
v := url.Values{}
|
||||
repos, tag := utils.ParseRepositoryTag(config.Image)
|
||||
|
|
Loading…
Add table
Reference in a new issue