Browse Source

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
changes/31/790531/2
Ian Wienand 3 months ago
parent
commit
11029a788a
  1. 6
      Dockerfile

6
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

Loading…
Cancel
Save