linux - How do I increase limits in my docker containers on CoreOS? -
by default, coreos , linux kernel has pretty conservative limits defined things such open files , locked memory.
so upped values in /etc/systemd/system.conf:
defaultlimitnofile=500000 defaultlimitmemlock=unlimited
however, when start docker containers limits still low. ulimit -l prints 64.
running ulimit -l unlimited prints error.
ulimit: max locked memory: cannot modify limit: operation not permitted
so placed
limitmaxlocked=unlimited limitnofile=64000
in systemd unit file.
however, these values not coming through docker container , calling them still doesn't work. i've rebooted machine after changing systemwide defaults.
this more of systemd thing. how fix this?
docker containers not started nor managed systemd. docker daemon responsible setting limits here. here example taken official documentation:
# docker run --ulimit nofile=1024:1024 --rm debian sh -c "ulimit -n"
Comments
Post a Comment