Skip to content

Commit

Permalink
Update Dockerfile.j2
Browse files Browse the repository at this point in the history
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 containers/podman#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.
  • Loading branch information
mayasd authored Jun 16, 2021
1 parent 395af1b commit a338371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/ansible/roles/dockerfile/templates/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a338371

Please sign in to comment.