From 51fa51a1a3a6566b4ec6f1f739a85a143f2ef7c6 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 14 Dec 2022 14:14:20 +1100 Subject: [PATCH] Dockerfile: use containernetworking-plugins It seems the containerfile elements are currently failing to have any networking, meaning they can't update packages, etc. There's some podman warnings along the lines of Error validating CNI config file /etc/cni/net.d/87-podman-bridge.conflist: [failed to find plugin \"bridge\" ... which suggests to me containernetworking-plugins isn't installed. Honestly I'm not sure why we aren't installing it ... it has iptables as a dependency so we don't need to explicilty install that. Add it to the install here Change-Id: Ie1fe48691f44aa847859cf294404dd9e8b03cce8 --- Dockerfile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 19cb4033a..b5117da58 100644 --- a/Dockerfile +++ b/Dockerfile @@ -104,11 +104,6 @@ RUN \ # https://bugs.debian.org/995777 # We install podman from unstable until these fixes make it into bullseye # -# For some reason, the unstable podman only suggests iptables (not -# recommends) so we need to pull that explicitly too. Unclear if -# this is a feature or a bug; see: -# https://bugs.debian.org/997976 -# # We are getting errors like # level=warning msg="\"/\" is not a shared mount, this could cause issues or missing mounts with rootless containers" # Error: command required for rootless mode with multiple IDs: exec: "newuidmap": executable file not found in $PATH @@ -119,7 +114,7 @@ RUN \ # and so unless we have the unstable version of libsemanage-common, it won't # install. -RUN apt-get install -y --install-recommends podman/unstable iptables uidmap/unstable libsemanage-common/unstable \ +RUN apt-get install -y --install-recommends podman/unstable containernetworking-plugins/unstable uidmap/unstable libsemanage-common/unstable \ && printf '[engine]\ncgroup_manager="cgroupfs"\nevents_logger="file"\n' > /etc/containers/containers.conf # There is a Debian package in the NEW queue currently for dnf-plugins-core