Docker error while using rancher

CasualSSR

Member
Oct 29, 2020
5
1
8
So i was trying to install rancher via docker in a LXC container. The LXC is priviliged with nesting enabled but when i try to run the command needed for spawning rancher:

docker run -d --restart=unless-stopped \
-p 80:80 -p 443:443 \
-v /opt/rancher:/var/lib/rancher \
--privileged \
rancher/rancher:latest

it gives this error: docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: apply caps: operation not permitted: unknown.
This error is given also when i try to launch the docker hello-world container. Any ideas on how to fix this? I already tried using unpriviliged container with keyctl and nesting but then rancher won't spin up because he wants priviliged options
 
i tried but i still get the same error
My Docker LXC contains these three lines at the bottom. Is yours the same?

/etc/pve/lxc/114.conf
Code:
lxc.apparmor.profile: unconfined
lxc.cgroup.devices.allow: a
lxc.cap.drop:

P.S. I don't think the Proxmox team support or recommend docker in LXC. It can be problematic and it's usually recommended to run a VM for docker instead (or better yet, run your apps directly as LXC containers :))
 
My Docker LXC contains these three lines at the bottom. Is yours the same?

/etc/pve/lxc/114.conf
Code:
lxc.apparmor.profile: unconfined
lxc.cgroup.devices.allow: a
lxc.cap.drop:

P.S. I don't think the Proxmox team support or recommend docker in LXC. It can be problematic and it's usually recommended to run a VM for docker instead (or better yet, run your apps directly as LXC containers :))
Yeah It Is the same. By the way i installed portainer and all the issues went away :)
 
  • Like
Reactions: lukyjay