From 11029a788a741721229f9ba74d4274c1cc2f4f87 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Tue, 11 May 2021 09:40:22 +1000 Subject: [PATCH] Dockerfile: podman -- handle new configuration file Configuration has all moved to containers.conf; write the cgroup option into that. Also disable log messages trying to go to systemd, which puts out warnings about the journal socket not existing. Change-Id: Ia4d31d826daf6f9b43757b8b4ae446092afd42c8 --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index fee039f66..4a5dd94ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -99,8 +99,8 @@ RUN \ # requires a later libseccomp2 only provided by backports. # # Podman defaults to trying to use systemd to do cgroup things (insert -# hand-wavy motion) but it's not in the container; disable this in -# config. +# hand-wavy motion) but it's not in the container; override to use +# cgroupfs manager. Also disable trying to send logs to the journal. # # Kernel may not support overlayfsmetacopy options (bionic?), need to # turn that off for compatability. See various error messages related @@ -114,7 +114,7 @@ RUN \ && apt-get install -y --install-recommends \ libseccomp2/buster-backports \ podman \ - && echo 'cgroup_manager="cgroupfs"' >> /etc/containers/libpod.conf \ + && printf '[engine]\ncgroup_manager="cgroupfs"\nevents_logger="file"\n' > /etc/containers/containers.conf \ && sed -i 's/,metacopy=on//g' /etc/containers/storage.conf # Cleanup