Template:Ubuntu24 Docker: Difference between revisions
From Variscite Wiki
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
<pre> | <pre> | ||
echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns | $ echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns | ||
</pre> | </pre> | ||
Alternatively, disable this restriction using a persistent setting by adding a new file (/etc/sysctl.d/60-apparmor-namespace.conf) with the following contents: | |||
<pre> | <pre> | ||
$ echo 'kernel.apparmor_restrict_unprivileged_userns=0' | sudo tee /etc/sysctl.d/60-apparmor-namespace.conf | |||
$ sudo sysctl -p /etc/sysctl.d/60-apparmor-namespace.conf | |||
</pre> | </pre> | ||
</includeonly> | </includeonly> |