mirror of https://github.com/docker/docs.git
Fix race causing autorestart turning off on restart
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
beeec6d103
commit
b8aaa4b07c
|
@ -503,7 +503,7 @@ func (container *Container) Stop(seconds int) error {
|
||||||
// 3. If it doesn't, then send SIGKILL
|
// 3. If it doesn't, then send SIGKILL
|
||||||
if err := container.Kill(); err != nil {
|
if err := container.Kill(); err != nil {
|
||||||
container.WaitStop(-1 * time.Second)
|
container.WaitStop(-1 * time.Second)
|
||||||
return err
|
logrus.Warn(err) // Don't return error because we only care that container is stopped, not what function stopped it
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue