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:
parent
a07bb0a0ae
commit
2c8b40d7ef
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue