From 42339ecceeff8143aecb7f96d68f38c329fccc41 Mon Sep 17 00:00:00 2001 From: Sergey <6213510+sshnaidm@users.noreply.github.com> Date: Mon, 1 Jun 2026 22:01:03 +0300 Subject: [PATCH] Fix CI registries to version 2 (#1039) Signed-off-by: Sagi Shnaidman --- ci/run_connection_test.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ci/run_connection_test.sh b/ci/run_connection_test.sh index 2aba80b..1b0498d 100755 --- a/ci/run_connection_test.sh +++ b/ci/run_connection_test.sh @@ -11,6 +11,13 @@ CON_TYPE="${1:-podman}" SUDO=${ROOT:+"sudo -E"} PODMAN_EXE="${2:-podman}" +# Ensure v2 registries.conf — dpkg may keep the old v1 format after package upgrades +if grep -q '^\[registries' /etc/containers/registries.conf 2>/dev/null; then + sudo tee /etc/containers/registries.conf > /dev/null <<'EOF' +unqualified-search-registries = ["docker.io"] +EOF +fi + echo "Print current Podman version" $PODMAN_EXE version @@ -21,6 +28,7 @@ if [[ "$CON_TYPE" == "podman" ]]; then ${SUDO} $PODMAN_EXE ps | grep -q "${CON_TYPE}-container" || \ ${SUDO} $PODMAN_EXE run -d --name "${CON_TYPE}-container" python:3.10-alpine sleep 1d elif [[ "$CON_TYPE" == "buildah" ]]; then + export BUILDAH_ISOLATION=chroot ${SUDO} buildah from --name=buildah-container python:3.10-alpine fi