Docker: Difference between revisions

Pigs (talk | contribs)
m Docker on btrfs: link to module options
Pigs (talk | contribs)
m Remove configurations that are already enabled by default in the system setup. Usage is shown in basic and advanced configuration
Line 1: Line 1:
<languages/>
<languages/>
'''Docker''' is a platform for building, packaging, and distributing applications inside containers. Containers bundle an application's code, configurations, and dependencies into a single object that runs consistently across different computing environments. Docker works well with NixOS through the virtualization module.<ref>https://www.docker.com/resources/what-container/</ref>
[https://www.docker.com/ Docker] is a platform for building, packaging, and distributing applications inside containers. Containers bundle an application's code, configurations, and dependencies into a single object that runs consistently across different computing environments. Docker works well with NixOS through the virtualization module.<ref>https://www.docker.com/resources/what-container/</ref>


== Installation ==
== Installation ==
Line 20: Line 20:
virtualisation.docker = {
virtualisation.docker = {
   enable = true;
   enable = true;
  # Enable docker daemon to start on boot
  enableOnBoot = true;
  # Use the faster overlay2 storage driver
  storageDriver = "overlay2";
};
};


Line 29: Line 25:
users.users.<username>.extraGroups = [ "docker" ];
users.users.<username>.extraGroups = [ "docker" ];
</syntaxhighlight>
</syntaxhighlight>
{{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.}}
{{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 Docker|rootless mode]].}}


{{evaluate}}
{{evaluate}}