From b3370603d9699f52f1903dbb94e46ba987597aa3 Mon Sep 17 00:00:00 2001 From: Christian Taedcke Date: Thu, 24 Dec 2020 23:13:52 +0100 Subject: [PATCH] Add support for sysctls in compose file --- podman_compose.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/podman_compose.py b/podman_compose.py index 9c96f78..69ab6d8 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -568,6 +568,8 @@ def container_to_args(compose, cnt, detached=True, podman_command='run'): podman_args.extend(['--shm-size', '{}'.format(cnt['shm_size'])]) if cnt.get('stdin_open', None): podman_args.append('-i') + for i in cnt.get('sysctls', []): + podman_args.extend(['--sysctl', i]) if cnt.get('tty', None): podman_args.append('--tty') if cnt.get('privileged', None):