Skip to content

Commit a03f83e

Browse files
committed
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)
1 parent f6f059d commit a03f83e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/container.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ func (container *Container) Start() (err error) {
426426
defer container.Unlock()
427427

428428
if container.State.IsRunning() {
429-
return fmt.Errorf("The container %s is already running.", container.ID)
429+
return nil
430430
}
431431

432432
defer func() {

0 commit comments

Comments
 (0)