Hello all,
I have an LXD container running Ubuntu 20.04 with security.nesting set to true and security.privileged set to false. I have installed docker and docker-compose on the container:
~$ docker -v
Docker version 20.10.2, build 2291f61
~$ docker-compose -v
docker-compose version 1.27.4, build 40524192
I tried to install OpenEDX using tutor (as explained here: https://docs.tutor.overhang.io/index.html). Tutor is running OpenEDX application processes in separated docker containers. At some point during the installation (of the elasticsearch component it seems), the following command is called:
docker-compose -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.yml -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local up --remove-orphans -d
causing the following error:
ERROR: for elasticsearch Cannot start service elasticsearch: OCI runtime create failed: container_linux.go:370: starting container process caused: process_linux.go:459: container init caused: process_linux.go:382: setting rlimits for ready process caused: error setting rlimit type 8: operation not permitted: unknown
ERROR: Encountered errors while bringing up the project.
Error: Command failed with status 1: docker-compose -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.yml -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local up --remove-orphans -d
I tried executing the last command using sudo but the same error occurs.
Do you have any idea how to fix the problem with rlimits? (by changing the configuration of the LXD container maybe?)
Thanks a lot