Skip to content

Commit 75d776e

Browse files
authored
Merge pull request #2320 from AkihiroSuda/fix-2319
apptainer: fix AppArmor incompatibility with Ubuntu 24.04
2 parents 710e7ed + 3f005da commit 75d776e

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)