Docker: Difference between revisions
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: | ||
<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: |