Can't provide sysctl options in docker for windows

98 views
Skip to first unread message

D Joshi

unread,
May 10, 2021, 8:21:03 AM5/10/21
to rabbitmq-users

I am using rabbitmq docker image https://hub.docker.com/_/rabbitmq and trying to pass some sysctl configurations to the command

docker run -d --restart unless-stopped -p 8883:8883 -p 1883:1883 -p 15675:15675 -p 15672:15672 --sysctl net.core.somaxconn=32768 --sysctl net.ipv4.tcp_max_syn_backlog=4096 --sysctl net.ipv4.tcp_rmem='4096 120000 16777216' --sysctl net.ipv4.tcp_wmem='4096 120000 16777216' -e RABBITMQ_VM_MEMORY_HIGH_WATERMARK=0.9 -e RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS="+P 2000000" -t probusdev/hes-rabbitmq:latest

The command works fine when running in linux os but fails when I am running on a windows host using docker for windows. Error: Unable to find image '120000:latest' locally

If I pass sysctl args in quotes like --sysctl net.ipv4.tcp_rmem="'4096 120000 16777216'" I get the error Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "process_linux.go:430: container init caused "write sysctl key net.ipv4.tcp_max_syn_backlog: open /proc/sys/net/ipv4/tcp_max_syn_backlog: no such file or directory"": unknown.

How do I pass the arguments properly? Is this possible in windows?

Reply all
Reply to author
Forward
0 new messages