Skip to content

Commit 6bde747

Browse files
committed
Problem: direct use of podman in the container
While mock is using it, running `podman` as is doesn't seem to work. Solution: configure it so that it does Taken from https://github.com/containers/image_build/blob/main/podman/containers.conf
1 parent 5ec8fb6 commit 6bde747

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ COPY Gemfile /pgpm
2626
COPY pgpm.gemspec /pgpm
2727
RUN cd /pgpm && bundle
2828

29+
COPY containers.conf /etc/containers/containers.conf
30+
2931
ENV QEMU_CPU max
3032

3133
VOLUME /pgpm

containers.conf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[containers]
2+
netns="host"
3+
userns="host"
4+
ipcns="host"
5+
utsns="host"
6+
cgroupns="host"
7+
cgroups="disabled"
8+
log_driver = "k8s-file"
9+
[engine]
10+
cgroup_manager = "cgroupfs"
11+
events_logger="file"
12+
runtime="crun"

0 commit comments

Comments
 (0)