Install upgraded crun from edge (#81833)

pull/81841/head
Matt Martz 8 months ago committed by GitHub
parent 7fab552563
commit e78cc1e602
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