Docker: Difference between revisions

m Rootless docker: Fixed inaccuracy
m Setup: Switch warning for security warning
Line 11: Line 11:
[https://search.nixos.org/options?from=0&size=50&sort=alpha_asc&query=virtualisation.docker More options] are available.
[https://search.nixos.org/options?from=0&size=50&sort=alpha_asc&query=virtualisation.docker More options] are available.


To get access to the docker socket, you have to be in the <code>docker</code> group:{{Warning|Beware that the docker group membership is effectively [https://github.com/moby/moby/issues/9976 equivalent to being root]! <br> Consider using rootless mode below.}}
To get access to the docker socket, you have to be in the <code>docker</code> group:{{Security Warning|Beware that the docker group membership is effectively [https://github.com/moby/moby/issues/9976 equivalent to being root]! <br> Consider using rootless mode below.}}


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">