Template:Ubuntu24 Docker: Difference between revisions

From Variscite Wiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:
</pre>
</pre>


Disable this restriction using a persistent setting by adding a new file (/etc/sysctl.d/60-apparmor-namespace.conf) with the following contents:
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
$ 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>

Latest revision as of 15:07, 19 November 2024