Quantcast
Channel: Active questions tagged containers - DevOps Stack Exchange
Viewing all articles
Browse latest Browse all 164

Change memlock limit in a Docker container; is it possible?

$
0
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".

Viewing all articles
Browse latest Browse all 164

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>