Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix possible race on container restart and restart error handling #25383

Merged
merged 2 commits into from
Aug 5, 2016

Conversation

tonistiigi
Copy link
Member

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@@ -260,14 +260,16 @@ func (ctr *container) waitExit(process *process, isFirstProcessToStart bool) err
err := <-waitRestart
ctr.restarting = false
ctr.client.deleteContainer(ctr.friendlyName)
if err == nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, exactly what I was hoping for!

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@mlaventure
Copy link
Contributor

LGTM.

@swernli
Copy link
Contributor

swernli commented Aug 4, 2016

LGTM

1 similar comment
@cpuguy83
Copy link
Member

cpuguy83 commented Aug 5, 2016

LGTM

@cpuguy83 cpuguy83 merged commit c1e0195 into moby:master Aug 5, 2016
@tiborvass tiborvass mentioned this pull request Aug 11, 2016
liusdu pushed a commit to liusdu/moby that referenced this pull request Oct 30, 2017
Fix Bug: canot remove restarting container

cherry pick from moby#25383

Signed-off-by: xiekeyang <xiekeyang@huawei.com>


See merge request docker/docker!206
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants