[stable-2.16] Install upgraded crun from edge (#81833) (#81839)

(cherry picked from commit e78cc1e)
pull/81842/head
Matt Martz 1 year ago committed by GitHub
parent 831dc6e444
commit 5008c56c50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1052,9 +1052,15 @@ class ApkBootstrapper(Bootstrapper):
# The `openssl` package is used to generate hashed passwords.
# crun added as podman won't install it as dep if runc is present
# but we don't want runc as it fails
packages = ['docker', 'podman', 'openssl', 'crun']
# The edge `crun` package installed below requires ip6tables, and in
# edge, the `iptables` package includes `ip6tables`, but in 3.18 they
# are separate. Remove `ip6tables` once we update to 3.19.
packages = ['docker', 'podman', 'openssl', 'crun', 'ip6tables']
run_command('apk', 'add', *packages)
# 3.18 only contains crun 1.8.4, to get 1.9.2 to resolve the run/shm issue, install crun from edge
# Remove once we update to 3.19
run_command('apk', 'upgrade', '-U', '--repository=http://dl-cdn.alpinelinux.org/alpine/edge/community', 'crun')
run_command('service', 'docker', 'start')
run_command('modprobe', 'tun')

Loading…
Cancel
Save