mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix "no such image" bug in docker run, introduced last commit. Ref #49,#50
This commit is contained in:
parent
1bfd827701
commit
2feefb4375
1 changed files with 4 additions and 1 deletions
|
@ -823,7 +823,10 @@ func (srv *Server) CmdRun(stdin io.ReadCloser, stdout io.Writer, args ...string)
|
|||
parts := strings.SplitN(name, ":", 2)
|
||||
img_name = parts[0]
|
||||
//img_version = parts[1] // Only here for reference
|
||||
}
|
||||
} else {
|
||||
img_name = name
|
||||
}
|
||||
|
||||
// Choose a default command if needed
|
||||
if len(cmdline) == 0 {
|
||||
*fl_stdin = true
|
||||
|
|
Loading…
Reference in a new issue