Pārlūkot izejas kodu

Fix "no such image" bug in docker run, introduced last commit. Ref #49,#50

Charles Hooper 12 gadi atpakaļ
vecāks
revīzija
2feefb4375
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      server/server.go

+ 4 - 1
server/server.go

@@ -823,7 +823,10 @@ func (srv *Server) CmdRun(stdin io.ReadCloser, stdout io.Writer, args ...string)
         parts := strings.SplitN(name, ":", 2)
         parts := strings.SplitN(name, ":", 2)
         img_name = parts[0]
         img_name = parts[0]
 		//img_version = parts[1]   // Only here for reference
 		//img_version = parts[1]   // Only here for reference
-    }
+    } else {
+		img_name = name
+	}
+
 	// Choose a default command if needed
 	// Choose a default command if needed
 	if len(cmdline) == 0 {
 	if len(cmdline) == 0 {
 		*fl_stdin = true
 		*fl_stdin = true