'docker run' works with paths as well as image IDs

This commit is contained in:
shin-
2013-03-12 05:57:19 -07:00
parent 8158616d61
commit de50c9c4e8
2 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -835,7 +835,7 @@ func (srv *Server) CmdRun(stdin io.ReadCloser, stdout io.Writer, args ...string)
cmdline = []string{"/bin/bash", "-i"}
}
// Find the image
img, err := srv.images.Get(name)
img, err := srv.images.Find(name)
if err != nil {
return err
} else if img == nil {