Skip to content

Commit 1a30e20

Browse files
[ubuntu] pin podmanm, add testcase for podman networking (#7763)
Related: #7753
1 parent 1e590b7 commit 1a30e20

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

images/linux/scripts/installers/containers.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@
66

77
source $HELPER_SCRIPTS/os.sh
88

9-
install_packages=(podman buildah skopeo)
9+
#
10+
# pin podman due to https://github.com/actions/runner-images/issues/7753
11+
# https://bugs.launchpad.net/ubuntu/+source/libpod/+bug/2024394
12+
#
13+
if isUbuntu20; then
14+
install_packages=(podman buildah skopeo)
15+
else
16+
install_packages=(podman=3.4.4+ds1-1ubuntu1 buildah skopeo)
17+
fi
1018

1119
# Packages is available in the official Ubuntu upstream starting from Ubuntu 21
1220
if isUbuntu20; then

images/linux/scripts/tests/Tools.Tests.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,12 @@ Describe "Containers" {
341341

342342
"$ContainerCommand -v" | Should -ReturnZeroExitCode
343343
}
344+
345+
# https://github.com/actions/runner-images/issues/7753
346+
It "podman networking" -TestCases "podman CNI plugins" {
347+
"podman network create -d bridge test-net && podman network ls" | Should -Not -MatchCommandOutput "Error"
348+
}
349+
344350
}
345351

346352
Describe "nvm" {

0 commit comments

Comments
 (0)