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
LXCFS, Alpine Linux and Systemd containers #154
Comments
Hi
could you please show the results of
cat /proc/cgroups
cat /proc/self/cgroup
grep cgroup /proc/self/mountinfo
cat /etc/lxc/lxc.conf
and the full container configuration?
note that since cgfs is being used, either cgmanager is broken
or the lxc version isn't built with cgmanager support. Are you
running these containers as non-root?
thanks.
|
For good measure:
I don't have lxc.conf These are root non-privileged domains. Thanks. |
@bocajspear1 - Have you solved this? I am experiencing something very similar with unprivileged containers on Arch. |
@graysky2, the thread you linked is unrelated to this issue and has been sufficiently answered by Fajar, I think (https://lists.linuxcontainers.org/pipermail/lxc-users/2017-January/012734.html). :) |
Finally figured out a fix for this. I found this issue: debops/ansible-lxc#15, where it mentions creating and mounting the systemd cgroup manually. So I did this:
It seems to work, except I do get a lot of
when the container starts in the foreground. Is this normal? |
Can you show more complete logs? (lxc-start -n container -l trace -o debug.out, post debug.out) Then after startup, show /proc/1/cgroup inside the container, and the result of 'tree -d /sys/fs/cgroup/systemd' on the host. |
Closing since there was no response in over a year. |
I'm trying to run Systemd containers on Alpine Linux using lxcfs. I managed to get things working once upon a time, and I documented my steps here: https://j2h2.com/entry/alpine-linux-systemd-containers.
However, I came back to update cgmanager and lxcfs, and now it doesn't work anymore.
I'm using lxc 1.1.5, and the latest lxcfs and cgmanager.
Kernel is 4.4.30.
I've been trying to troubleshoot this for 10+ hours, and I'm at my wits end.
This is the output of the container:
Debug output:
The text was updated successfully, but these errors were encountered: