Skip to content

Commit 3f005da

Browse files
committed
apptainer: fix AppArmor incompatibility with Ubuntu 24.04
Fix issue 2319 Signed-off-by: Akihiro Suda <[email protected]>
1 parent 710e7ed commit 3f005da

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/apptainer.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ provision:
3030
#!/bin/bash
3131
set -eux -o pipefail
3232
command -v apptainer >/dev/null 2>&1 && exit 0
33+
# Workaround for https://github.com/apptainer/apptainer/issues/2027
34+
echo "kernel.apparmor_restrict_unprivileged_userns = 0" >/etc/sysctl.d/99-userns.conf
35+
sysctl --system
3336
# add the "Official PPA for Apptainer"
3437
add-apt-repository -y ppa:apptainer/ppa
3538
apt-get update

0 commit comments

Comments
 (0)