Explorar o código

Do not error when trying to start a started container

Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <guillaume@charmes.net> (github: creack)
Guillaume J. Charmes %!s(int64=11) %!d(string=hai) anos
pai
achega
a03f83e337
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      runtime/container.go

+ 1 - 1
runtime/container.go

@@ -426,7 +426,7 @@ func (container *Container) Start() (err error) {
 	defer container.Unlock()
 
 	if container.State.IsRunning() {
-		return fmt.Errorf("The container %s is already running.", container.ID)
+		return nil
 	}
 
 	defer func() {