Dockerfile: podman -- disable metacopy option

If the kernel in the container doesn't support this option it causes
podman to fail to start when using the containerfile dib element.
Disable metacopy option for compatability.

Change-Id: I168bd1a50b6b20da051b00c3e88daedb5ed6e5e9
This commit is contained in:
Ian Wienand 2021-05-10 12:11:48 +10:00
parent a07bb0a0ae
commit 2c8b40d7ef
1 changed files with 8 additions and 0 deletions

View File

@ -104,6 +104,14 @@ RUN \
mkdir -p /etc/containers \
&& echo 'cgroup_manager="cgroupfs"' >> /etc/containers/libpod.conf
# Kernel may not support overlayfsmetacopy options (bionic?), need to
# turn that off for compatability. See various error messages related
# to:
# Error: error creating libpod runtime: failed to mount overlay for
# metacopy check: invalid argument
RUN \
sed -i 's/,metacopy=on//g' /etc/containers/storage.conf
CMD _DAEMON_FLAG=${DEBUG:+-d} && \
_DAEMON_FLAG=${_DAEMON_FLAG:--f} && \
/usr/local/bin/nodepool-builder ${_DAEMON_FLAG}