-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 'sysctl' option support #3765
Comments
+1 |
I've submitted a PR for this to docker-py in docker/docker-py#1145. I have a patch for docker-compose in my tree at 87ea3c4. Will submit my patch here once docker-py support is accepted. |
+1 |
4 similar comments
+1 |
+1 |
+1 |
+1 |
Anything happening here? |
#3798 closes this. docker-py version 1.10.0 added support for sysctls, so I hope we can get this merged soon. |
I followed instruction https://docs.docker.com/compose/gettingstarted/ . but it does not work ...... Has anyone got the instruction working? |
Guys any progress? Need this feature to run latest version of Elasticsearch from docker-compose... |
+1 |
Also waiting for this to make our lives easier :) |
+1 |
1 similar comment
+1 |
Guys sorry for annoying, when it becomes available in release? |
FYI There is |
Docker-compose 3.0+ support this feature (sysctls)? |
@agiUnderground, yes |
@AnatolyRugalev can you give me a link or some example please? I trying to start redis as docker service in docker stack and i wanna change /proc/sys/net/core/somaxconn option. I found this message, that make me sad( |
+1 |
How to fix error below. Error Message:
docker-compose.yml:
|
Typo? Should be somaxconn, not ‘comm’?
… On Jul 6, 2018, at 07:29, ercom ***@***.***> wrote:
How to fix error below.
Error Message:
***@***.***:~/dk$ docker-compose up redis
Starting redis-con ... error
ERROR: for redis-con Cannot start service redis: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"open /proc/sys/net/core/somaxcomm: no such file or directory\"": unknown
ERROR: for redis Cannot start service redis: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"open /proc/sys/net/core/somaxcomm: no such file or directory\"": unknown
ERROR: Encountered errors while bringing up the project.
docker-compose.yml:
version: '3'
services:
redis:
image: redis:3.2.12
container_name: redis-con
privileged: true
sysctls:
net.core.somaxcomm: '511'
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
PR moby/moby#19265 merged 'sysctl' support into docker, but there seems to be no way to use this feature with docker-compose. Has anyone started work on such a feature? If not, I will attempt to patch docker-compose and create a PR. Are there any suggestions on how to implement it? I was thinking of starting with something similar to how the environment or cap_add options work.
The text was updated successfully, but these errors were encountered: