Skip to content

how can I check if containerd is running with systemd cgroup for runc? #5413

Answered by AkihiroSuda
rdxmb asked this question in Q&A
Discussion options

You must be logged in to vote

Run sudo /usr/sbin/execsnoop-bpfcc -n runc, create some containers, and observe whether the execsnoop result contains --systemd-cgroup

$ sudo /usr/sbin/execsnoop-bpfcc -n runc
PCOMM            PID    PPID   RET ARGS
runc             7984   7974     0 /usr/local/bin/runc --root /run/containerd/runc/k8s.io --log /run/containerd/io.containerd.runtime.v2.task/k8s.io/b6725c857dd7492a37f73038db80b7443ea1ed9c24b2d98a4b4e15ee8dad24c4/log.json --log-format json --systemd-cgroup create --bundle /run/containerd/io.containerd.runtime.v2.task/k8s.io/b6725c857dd7492a37f73038db80b7443ea1ed9c24b2d98a4b4e15ee8dad24c4 --pid-file /run/containerd/io.containerd.runtime.v2.task/k8s.io/b6725c857dd7492a37f73038d…

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@rdxmb
Comment options

@rdxmb
Comment options

@rdxmb
Comment options

Comment options

You must be logged in to vote
1 reply
@AkihiroSuda
Comment options

Comment options

You must be logged in to vote
1 reply
@cwrau
Comment options

Answer selected by AkihiroSuda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants