Error when using sysctls
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'
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 yep, it is supported by compose (https://docs.docker.com/compose/compose-file/#sysctls) so libcompose should support it 👼
@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 I meant we need to add support for it in libcompose 👼