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

Workaround for inconsistency container status #339

Open
wants to merge 1 commit into
base: docker-1.13.1-rhel
Choose a base branch
from

Conversation

shawn111
Copy link

@shawn111 shawn111 commented Mar 25, 2019

- What I did
Fix stopped container still report as running.

- How I did it
When containerd restarted, check correct container running status

- How to verify it

# dockerd-> containerd -> containerd-shim -> <runc_container_process>

$ docker run xxx
$ docker ps  ## correct, shows one container is up

# simulate the heavy scenario
$ kill -STOP <dockerd_PID>

$ kill <docker-containerd-shim_PID> or kill <runc_container_process_PID>
$ kill <docker-containerd_PID>

$ kill -CONT <dockerd_PID>
$ docker ps  ## wrong, still shows one container is up

After, apply the patch, the final docker ps could be correct.

Reference issue:

@rh-atomic-bot
Copy link

Can one of the admins verify this patch?
I understand the following commands:

  • bot, add author to whitelist
  • bot, test pull request
  • bot, test pull request once

@rhatdan
Copy link
Member

rhatdan commented Mar 26, 2019

bot, add author to whitelist
LGTM
You need to sign your commit

git commit -a --amend -s
git push --force

Was this a backport from upstream?

@shawn111
Copy link
Author

Hi @rhatdan,

Not, it is not from upstream.
Maybe I should send another PR for upstream.

Thanks for your review.

@rhatdan
Copy link
Member

rhatdan commented Mar 27, 2019

Yes send it to them and get their approval.

@rhatdan
Copy link
Member

rhatdan commented Mar 27, 2019

Hopefully we don't have this inconsistency in Podman.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants