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

**URL:** <https://meta.discourse.org/t/how-do-you-set-net-core-somaxconn-in-the-docker-container/64577>\
**Category:** Self-hosting\
**Created:** [June 15, 2017, 9:29pm UTC](https://meta.discourse.org/t/how-do-you-set-net-core-somaxconn-in-the-docker-container/64577 "2017-06-15T21:29:34Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![dmitry\_fedyuk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dmitry_fedyuk/32/293153_2.png) [@dmitry\_fedyuk](https://meta.discourse.org/u/dmitry_fedyuk)\
**Post date:** [January 23, 2018, 6:41pm UTC](https://meta.discourse.org/t/how-do-you-set-net-core-somaxconn-in-the-docker-container/64577/5 "2018-01-23T18:41:33Z")

</div>

I have found the solution:

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

```

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

«[docker run](https://docs.docker.com/engine/reference/commandline/run/)» → «[Configure namespaced kernel parameters (sysctls) at runtime](https://docs.docker.com/engine/reference/commandline/run/#configure-namespaced-kernel-parameters-sysctls-at-runtime)»

![02](https://global.discourse-cdn.com/meta/original/3X/4/c/4c2450a6660e937da9185d777a152c2cfa922cb1.png)

---

_[View the full topic](https://meta.discourse.org/t/how-do-you-set-net-core-somaxconn-in-the-docker-container/64577)._
