diff --git a/images/linux/scripts/installers/containers.sh b/images/linux/scripts/installers/containers.sh index 418494a87a82..38a9d89ab591 100644 --- a/images/linux/scripts/installers/containers.sh +++ b/images/linux/scripts/installers/containers.sh @@ -6,7 +6,15 @@ source $HELPER_SCRIPTS/os.sh -install_packages=(podman buildah skopeo) +# +# pin podman due to https://github.com/actions/runner-images/issues/7753 +# https://bugs.launchpad.net/ubuntu/+source/libpod/+bug/2024394 +# +if isUbuntu20; then + install_packages=(podman buildah skopeo) +else + install_packages=(podman=3.4.4+ds1-1ubuntu1 buildah skopeo) +fi # Packages is available in the official Ubuntu upstream starting from Ubuntu 21 if isUbuntu20; then diff --git a/images/linux/scripts/tests/Tools.Tests.ps1 b/images/linux/scripts/tests/Tools.Tests.ps1 index 22f677daef6b..aa6cc8f47d46 100644 --- a/images/linux/scripts/tests/Tools.Tests.ps1 +++ b/images/linux/scripts/tests/Tools.Tests.ps1 @@ -341,6 +341,12 @@ Describe "Containers" { "$ContainerCommand -v" | Should -ReturnZeroExitCode } + + # https://github.com/actions/runner-images/issues/7753 + It "podman networking" -TestCases "podman CNI plugins" { + "podman network create -d bridge test-net && podman network ls" | Should -Not -MatchCommandOutput "Error" + } + } Describe "nvm" {