How to run docker inside an lxc container?
1
vote
2
answers
4196
views
I have unprivileged lxc container on Arch host created like this:
lxc-create -n test_arch11 -t download -- --dist archlinux --release current --arch amd64
And it doesn't run docker. What I did inside a container:
1. Installed docker from Arch repos pacman -S docker
2. Tried to run a hello-world container docker run hello-world
3. Got the next error:
> docker: Error response from daemon: OCI runtime create failed: container_linux.go:346: starting container process caused "process_linux.go:297: applying cgroup configuration for process caused \"mkdir /sys/fs/cgroup/cpuset/docker: permission denied\"": unknown.
> ERRO error waiting for container: context canceled
What is wrong and how to make docker work inside a container?
Asked by devalone
(111 rep)
Oct 27, 2019, 04:49 PM
Last activity: Jun 9, 2025, 04:09 AM
Last activity: Jun 9, 2025, 04:09 AM