How do you set net.core.somaxconn in the docker container?

I have found the solution:

./launcher rebuild <container> --docker-args "--sysctl net.core.somaxconn=65535"

https://github.com/discourse/discourse_docker/blob/e9505520/launcher#L18-L18

«docker run» → «Configure namespaced kernel parameters (sysctls) at runtime»

5 Likes