From a3383716aba018449353e1ac3bfb2f12a0fd6602 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 16 Jun 2021 15:03:37 +0200 Subject: [PATCH] Update Dockerfile.j2 Jobs unable to start because podman trying to use systemd cgroup manager. See error below : ``` WARN[0000] Failed to add conmon to systemd sandbox cgroup: dial unix /run/systemd/private: connect: no such file or directory Error: OCI runtime error: systemd cgroup flag passed, but systemd support for managing cgroups is not available ``` * According to this PR https://github.com/containers/podman/pull/7009, podman switch references from libpod.conf to containers.conf. * According to containers.conf man (https://github.com/containers/common/blob/main/docs/containers.conf.5.md), configuration file is a TOML file but engine section declaration is missing. --- tools/ansible/roles/dockerfile/templates/Dockerfile.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ansible/roles/dockerfile/templates/Dockerfile.j2 b/tools/ansible/roles/dockerfile/templates/Dockerfile.j2 index 2a0387da04..38a7931d58 100644 --- a/tools/ansible/roles/dockerfile/templates/Dockerfile.j2 +++ b/tools/ansible/roles/dockerfile/templates/Dockerfile.j2 @@ -153,7 +153,7 @@ RUN dnf --enablerepo=debuginfo -y install python3-debuginfo || : {% if build_dev|bool %} RUN dnf install -y podman -RUN echo -e 'cgroup_manager = "cgroupfs"\nevents_logger = "file"' > /etc/containers/libpod.conf +RUN echo -e '[engine]\ncgroup_manager = "cgroupfs"\nevents_logger = "file"' > /etc/containers/containers.conf {% endif %} # Ensure we must use fully qualified image names