-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Alpine] docker top, runc ps fail with cgroup2 with: unable to get all container pids #4097
Comments
The issue is reproducible with runc taken from the main git branch. |
openrc-0.51-r0 switched the default rc_cgroup_mode from hybrid to unified. This revealed an issue with `docker top` which is critical for our infrastructure: opencontainers/runc#4097 While the issue is being investigated, we are reverting the mode back to hybrid to make `docker top` work with the default openrc configuration.
@kholmanskikh can you please check and confirm/deny that this is because of |
The issue is also reproducible when the cgroup2 is mounted without the
|
related downstream issues:
It also fails to start containers with
In this case I have a
EDIT: but if I use:
It actually works. |
Could it be that If I restart the docker daemon, it will initially be
Why does it end up with setting cgroup type as |
Hi, i have the same issue under Portainer.
I have many containers running fine for a while now but i'm unable to get stats |
Description
docker top
andrunc ps
fail with:when the system has cgroup2 mounted as:
and this does not happen when cgroup v1 is mounted (in addition to, or instead of cgroup v2).
The issue was found on Alpine Edge with packages:
Alpine uses openrc, which allows to specify the cgroup mount strategy in
/etc/rc.conf
:and the issue mentioned above is observed when rc_cgroup_mode is unified:
and is not observed when it's legacy:
or hybrid:
Steps to reproduce the issue
docker run -it --rm <any container>
docker top <container id>
orrunc --root /run/docker/runtime-runc/moby ps <container id>
Describe the results you received and expected
The command should display a list of processes in the container.
What version of runc are you using?
runc version 1.1.9
commit: 82f18fe
spec: 1.0.2-dev
go: go1.21.3
libseccomp: 2.5.4
Host OS information
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.19_alpha20230901
PRETTY_NAME="Alpine Linux edge"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
Host kernel information
Linux alpine 6.1.59-0-lts #1-Alpine SMP PREEMPT_DYNAMIC Fri, 20 Oct 2023 06:24:46 +0000 x86_64 Linux
The text was updated successfully, but these errors were encountered: