dockerposixulimit

How to set POSIX message queues limit to unlimited in docker container using --ulimit option


How to set the POSIX message queues limit as unlimited for docker container.

I know that --ulimit is an option that can be used along with docker run, but i'm not quite sure on how to use the --ulimit option along with docker run for POSIX message queues.

tried following but did not work:
docker run -it --ulimit msgqueue=unlimited

Also tried following within container
ulimit -q unlimited

error: Operation not permitted


Solution

  • Got to know that --ulimit in docker does not support the value unlimited
    The way to do it is

    docker run -it --ulimit msgqueue=100000000:100000000
    

    100000000 is for 100GB