Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Error when using sysctls #445

Open
procrypt opened this issue Mar 1, 2017 · 4 comments
Open

Error when using sysctls #445

procrypt opened this issue Mar 1, 2017 · 4 comments

Comments

@procrypt
Copy link

procrypt commented Mar 1, 2017

If my docker-compose file contains sysctls directive, I get this error.

$ libcompose up
WARN[0000] Note: This is an experimental alternate implementation of the Compose CLI (https://github.com/docker/compose) 
ERRO[0000] Could not parse config for project komposefiles : Unsupported config option for web service: 'sysctls' 
FATA[0000] Failed to read project: Unsupported config option for web service: 'sysctls'
@cdrage
Copy link
Contributor

cdrage commented Aug 2, 2017

Hey @vdemeester this is blocking us adding support in Kubernetes / Kompose / Docker Compose.

Do you think we could add sysctl support to libcompose? (it's already added to docker/cli but not to docker/libcompose)

@vdemeester
Copy link
Collaborator

@cdrage yep, it is supported by compose (https://docs.docker.com/compose/compose-file/#sysctls) so libcompose should support it 👼

@cdrage
Copy link
Contributor

cdrage commented Aug 2, 2017

@vdemeester Nope, doesn't seem to work. Same problem as in the original description of this issue, using the latest libcompose:

github.com/docker/libcompose  master ✗                                                                                                                       23d ◒  ⍉
▶ ./libcompose up
WARN[0000] Note: This is an experimental alternate implementation of the Compose CLI (https://github.com/docker/compose) 
ERRO[0000] Could not parse config for project libcompose : Unsupported config option for redis service: 'sysctls' 
FATA[0000] Failed to read project: Unsupported config option for redis service: 'sysctls' 

github.com/docker/libcompose  master ✗                                                                                                                       23d ◒  ⍉
▶ cat docker-compose.yml 
version: "2"

services:
    redis:
      image: redis:3.0
      environment:
        foo: 0.3
      sysctls:
        - net.core.somaxconn=1024
        - net.ipv4.tcp_syncookies=0

EDIT: Ah, I saw what you meant. Okay, I'll see if I have some free time this sprint and push a fix to add sysctls.

@vdemeester
Copy link
Collaborator

@cdrage I meant we need to add support for it in libcompose 👼

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

No branches or pull requests

3 participants