Jump to content

Docker: Difference between revisions

1 byte removed ,  27 December 2022
m
no edit summary
imported>Jooooscha
(Restructure and add information)
imported>Jooooscha
mNo edit summary
Line 12: Line 12:


Adding users to the <code>docker</code> group will provide them access to the socket:
Adding users to the <code>docker</code> group will provide them access to the socket:
{{Warning|Beware that the docker group membership is effectively [https://github.com/moby/moby/issues/9976 equivalent to being root]!}}


<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>
users.users.<myuser>.extraGroups = [ "docker" ];
users.users.<myuser>.extraGroups = [ "docker" ];
</syntaxHighlight>
</syntaxHighlight>
{{Warning|Beware that the docker group membership is effectively [https://github.com/moby/moby/issues/9976 equivalent to being root]!}}


Note: If you use the [[btrfs]] filesystem, you might need to set the storageDriver option:
Note: If you use the [[btrfs]] filesystem, you might need to set the storageDriver option:
Anonymous user