Skip to content
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

Closed
jtakkala opened this issue Jul 26, 2016 · 23 comments
Closed

Add 'sysctl' option support #3765

jtakkala opened this issue Jul 26, 2016 · 23 comments

Comments

@jtakkala
Copy link

jtakkala commented Jul 26, 2016

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.

@jtakkala jtakkala changed the title Add sysctl option support Add 'sysctl' option support Jul 26, 2016
@NoamB
Copy link

NoamB commented Jul 27, 2016

+1

@jtakkala
Copy link
Author

jtakkala commented Jul 29, 2016

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.

@ebr
Copy link

ebr commented Aug 15, 2016

+1

4 similar comments
@alexandrebini
Copy link

+1

@timgriffiths
Copy link

+1

@vingrad
Copy link

vingrad commented Sep 20, 2016

+1

@bmicha4
Copy link

bmicha4 commented Sep 29, 2016

+1

@codepunkt
Copy link

Anything happening here?

@jtakkala
Copy link
Author

#3798 closes this. docker-py version 1.10.0 added support for sysctls, so I hope we can get this merged soon.

@yingdi11
Copy link

I followed instruction https://docs.docker.com/compose/gettingstarted/ . but it does not work ......

Has anyone got the instruction working?

@Hronom
Copy link

Hronom commented Nov 29, 2016

Guys any progress? Need this feature to run latest version of Elasticsearch from docker-compose...

@GuillaumeMartial
Copy link

+1

@jonathas
Copy link

jonathas commented Dec 3, 2016

Also waiting for this to make our lives easier :)

@Aimsam
Copy link

Aimsam commented Dec 5, 2016

+1

1 similar comment
@lambrojos
Copy link

+1

@shin- shin- closed this as completed in 91620ae Dec 20, 2016
@Hronom
Copy link

Hronom commented Dec 28, 2016

Guys sorry for annoying, when it becomes available in release?

@AnatolyRugalev
Copy link

FYI

There is sysctls option starting from docker-compose 2.1

@agiUnderground
Copy link

Docker-compose 3.0+ support this feature (sysctls)?

@AnatolyRugalev
Copy link

@agiUnderground, yes

@agiUnderground
Copy link

agiUnderground commented Jun 6, 2017

@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(
"Note: This option is ignored when deploying a stack in swarm mode with a (version 3) Compose file."

@marzlarz
Copy link

marzlarz commented Jun 7, 2018

+1

@farwish
Copy link

farwish commented Jul 6, 2018

How to fix error below.

Error Message:

ubuntu@VM-0-10-ubuntu:~/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'

@jtakkala
Copy link
Author

jtakkala commented Jul 6, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests