libcompose icon indicating copy to clipboard operation
libcompose copied to clipboard

Error when using sysctls

Open procrypt opened this issue 8 years ago • 4 comments

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'

procrypt avatar Mar 01 '17 09:03 procrypt

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)

cdrage avatar Aug 02 '17 17:08 cdrage

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

vdemeester avatar Aug 02 '17 18:08 vdemeester

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

cdrage avatar Aug 02 '17 18:08 cdrage

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

vdemeester avatar Aug 02 '17 18:08 vdemeester