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
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