0

I'm running a container from vast.ai, Ubuntu 20.04 LTS.

I'd like to change memlock limit in the Docker container. Is it possible?

What I've already tried:

  • Changing the memlock limits in /etc/security/limits.conf; tried:
    • * - memlock -1
    • * - memlock unlimited
    • root - memlock unlimited
  • Adding DefaultLimitMEMLOCK=infinity to /etc/systemd/system.conf;
  • Adding UseLogin yes to /etc/ssh/sshd_config;
  • Using ulimit -l unlimited, "operation not permitted".

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.