[stable-2.14] Install upgraded crun from edge (#81833). (#82342)

(cherry picked from commit e78cc1e602)
pull/82348/head
Matt Martz 2 years ago committed by GitHub
parent 1609a5d1cc
commit fc130b6bfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1050,9 +1050,16 @@ class ApkBootstrapper(Bootstrapper):
def run(cls) -> None:
"""Run the bootstrapper."""
# The `openssl` package is used to generate hashed passwords.
packages = ['docker', 'podman', 'openssl']
# crun added as podman won't install it as dep if runc is present
# but we don't want runc as it fails
# The edge `crun` package installed below requires ip6tables, and in
# edge, the `iptables` package includes `ip6tables`, but in 3.16 they
# are separate.
packages = ['docker', 'podman', 'openssl', 'crun', 'ip6tables']
run_command('apk', 'add', *packages)
# 3.16 only contains crun 1.4.5, to get 1.9.2 to resolve the run/shm issue, install crun from edge
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