$ docker run -i -t ubuntu /bin/bash root@78b686f92e77:/# ulimit -n 1048576 root@78b686f92e77:/# useradd anton root@78b686f92e77:/# su anton anton@78b686f92e77:/$ ulimit -n 1024 anton@78b686f92e77:/$ exit exit root@78b686f92e77:/# echo "* - nofile 10000" >> /etc/security/limits.conf root@78b686f92e77:/# su anton anton@78b686f92e77:/$ ulimit -n 10000 anton@78b686f92e77:/$ uname -a Linux 78b686f92e77 4.9.41-moby #1 SMP Wed Sep 6 00:05:16 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux anton@78b686f92e77:/$