1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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)
This commit is contained in:
Guillaume J. Charmes 2014-03-29 22:12:34 -07:00
parent f6f059d99a
commit a03f83e337
No known key found for this signature in database
GPG key ID: B33E4642CB6E3FF3

View file

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