Template:Ubuntu24 Docker: Difference between revisions
From Variscite Wiki
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
</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> |