compose icon indicating copy to clipboard operation
compose copied to clipboard

Add 'sysctl' option support

Open jtakkala opened this issue 10 years ago • 25 comments

PR https://github.com/docker/docker/pull/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 avatar Jul 26 '16 15:07 jtakkala

+1

NoamB avatar Jul 27 '16 13:07 NoamB

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 87ea3c40f71c4b87e2292244a276a53765f484e6. Will submit my patch here once docker-py support is accepted.

jtakkala avatar Jul 29 '16 19:07 jtakkala

+1

ebr avatar Aug 15 '16 20:08 ebr

+1

alexandrebini avatar Aug 15 '16 21:08 alexandrebini

+1

timgriffiths avatar Sep 02 '16 04:09 timgriffiths

+1

vingrad avatar Sep 20 '16 22:09 vingrad

+1

bmicha4 avatar Sep 29 '16 10:09 bmicha4

Anything happening here?

codepunkt avatar Sep 30 '16 07:09 codepunkt

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

jtakkala avatar Oct 21 '16 13:10 jtakkala

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

Has anyone got the instruction working?

yingdi11 avatar Oct 24 '16 00:10 yingdi11

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

Hronom avatar Nov 29 '16 11:11 Hronom

+1

GuillaumeMartial avatar Dec 02 '16 13:12 GuillaumeMartial

Also waiting for this to make our lives easier :)

jonathas avatar Dec 03 '16 16:12 jonathas

+1

Aimsam avatar Dec 05 '16 07:12 Aimsam

+1

lambrojos avatar Dec 20 '16 10:12 lambrojos

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

Hronom avatar Dec 28 '16 13:12 Hronom

FYI

There is sysctls option starting from docker-compose 2.1

AnatolyRugalev avatar May 05 '17 08:05 AnatolyRugalev

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

agiUnderground avatar Jun 06 '17 07:06 agiUnderground

@agiUnderground, yes

AnatolyRugalev avatar Jun 06 '17 07:06 AnatolyRugalev

@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."

agiUnderground avatar Jun 06 '17 07:06 agiUnderground