You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the code, it seems that the combination of cgroup v1 and systemd driver, and the combination of cgroup v2 and cgroupfs driver do not output logs.
Bug Report
Describe the bug
I'm unable to get docker output when using the docker input.
No log is output when using cgroup v2 and cgroupfs cgroup driver.
To Reproduce
Run: sudo docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/containers/:/var/lib/docker/containers/ -v /sys/fs/cgroup:/sys/fs/cgroup -ti fluent/fluent-bit:3.2 /fluent-bit/bin/fluent-bit -i docker -o stdout
Your Environment
If you change to systemd's Cgroup Driver, logs will be output normally.
/etc/docker/daemon.json
↓
sudo systemctl restart docker.service
Run: sudo docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/containers/:/var/lib/docker/containers/ -v /sys/fs/cgroup:/sys/fs/cgroup -ti fluent/fluent-bit:3.2 /fluent-bit/bin/fluent-bit -i docker -o stdout
Looking at the code, it seems that the combination of cgroup v1 and systemd driver, and the combination of cgroup v2 and cgroupfs driver do not output logs.
ref: https://docs.docker.com/engine/containers/runmetrics/#find-the-cgroup-for-a-given-container
fluent-bit/plugins/in_docker/docker.h
Lines 46 to 59 in d77c06d
ref: #3882
The text was updated successfully, but these errors were encountered: