summaryrefslogtreecommitdiffstats
path: root/nixos/modules/virtualisation/docker.nix
AgeCommit message (Collapse)Author
2019-05-22docker: fix typomkenigs
2019-03-24nixos/docker: /var/run -> /runBob van der Linden
2019-02-27nixos/docker: add enableNvidia optionAverell Dalton
2018-06-30nixos/modules: users.(extraUsers|extraGroup->users|group)Florian Klink
2017-09-04docker: Allow package selection in moduleTim Steinbach
2017-07-21docker module: fix autoPrune.enable descriptionFranz Pletz
cc #27503
2017-07-20docker service: add option to do automatic pruningPascal Bach
This allows to run the prune job periodically on a machine. By default the if enabled the job is run once a week. The structure is similar to how system.autoUpgrade works.
2017-04-26docker: pass all proxy variables to docker daemonPascal Bach
This makes things as noProxy work too.
2017-04-03docker: fix socket permissionsAlexey Shmalko
Docker socket is world writable. This means any user on the system is able to invoke docker command. (Which is equal to having a root access to the machine.) This commit makes socket group-writable and owned by docker group. Inspired by https://github.com/docker/docker/blob/master/contrib/init/systemd/docker.socket
2017-01-01docker: deprecate socketActivation optionJörg Thalheim
2016-12-25docker: use upstream service file from packageJörg Thalheim
2016-12-23docker: update service units from upstreamJörg Thalheim
All the new options in detail: Enable docker in multi-user.target make container created with restart=always to start. We still want socket activation as it decouples dependencies between the existing of /var/run/docker.sock and the docker daemon. This means that services can rely on the availability of this socket. Fixes #11478 #21303 wantedBy = ["multi-user.target"]; This allows us to remove the postStart hack, as docker reports on its own when it is ready. Type=notify The following will set unset some limits because overhead in kernel's ressource accounting was observed. Note that these limit only apply to containerd. Containers will have their own limit set. LimitNPROC=infinity LimitCORE=infinity TasksMax=infinity Upgrades may require schema migrations. This can delay the startup of dockerd. TimeoutStartSec=0 Allows docker to create its own cgroup subhierarchy to apply ressource limits on containers. Delegate=true When dockerd is killed, container should be not affected to allow `live restore` to work. KillMode=process
2016-09-13docker module: updatesJaka Hudoklin
- logDriver option, use journald for logging by default - keep storage driver intact by default, as docker has sane defaults - do not choose storage driver in tests, docker will choose by itself - use dockerd binary as "docker daemon" command is deprecated and will be removed - add overlay2 to list of storage drivers
2016-08-19nixos treewide: don't set MODULE_DIRNikolay Amiantov
2016-08-19modprobe service: drop kmod wrapperNikolay Amiantov
2016-08-15Revert "Merge branch 'modprobe-fix' of git://github.com/abbradar/nixpkgs"Shea Levy
Was meant to go into staging, sorry This reverts commit 57b2d1e9b0dcdd1d25bd2d450174764b9417ffc1, reversing changes made to 760b2b9048ea775c319cb348d74447a20dea513e.
2016-08-16nixos treewide: don't set MODULE_DIRNikolay Amiantov
2016-08-16modprobe service: drop kmod wrapperNikolay Amiantov
2016-06-11nixos/docker: use wrapped modprobeBenno Fünfstück
We need to use wrapped modprobe, so that it finds the right modules. Docker needs modprobe to load overlay kernel module for example. This fixes an an error starting docker if the booted system's kernel version is different from the /run/current-system profile's one.
2015-12-24docker module: fix kernel module loadingBenno Fünfstück
The docker module used different code for socket-activated docker daemon than for the non-socket activated daemon. In particular, if the socket-activated daemon is used, then modprobe wasn't set up to be usable and in PATH for the docker daemon, which resulted in a failure to start the daemon with overlayfs as storageDriver if the `overlay` kernel module wasn't already loaded. This commit fixes that bug (which only appears if socket activation is used), and also reduces the duplication between code paths so that it's easier to keep both in sync in future.
2015-11-20nixos/docker: enable socketActivation by defaultLuca Bruno
2015-10-04nixos/docker: default storageDriver to "devicemapper"Bjørn Forsman
Commit 9bfe92ecee ("docker: Minor improvements, fix failing test") added the services.docker.storageDriver option, made it mandatory but didn't give it a default value. This results in an ugly traceback when users enable docker, if they don't pay enough attention to also set the storageDriver option. (An attempt was made to add an assertion, but it didn't work, possibly because of how "mkMerge" works.) The arguments against a default value were that the optimal value depends on the filesystem on the host. This is, AFAICT, only in part true. (It seems some backends are filesystem agnostic.) Also, docker itself uses a default storage driver, "devicemapper", when no --storage-driver=x options are given. Hence, we use the same value as default. Add a FIXME comment that 'devicemapper' breaks NixOS VM tests (for yet unknown reasons), so we still run those with the 'overlay' driver. Closes #10100 and #10217.
2015-10-04nixos/modules: simplify pkgs.zfs handlingBjørn Forsman
Thanks, @lethalman.
2015-10-04nixos/docker: Include ZFS commands in PATH for ZFS storagedriverCasey Ransom
When using the ZFS storagedriver in docker, it shells out for the ZFS commands. The path configuration for the systemd task does not include ZFS, so if the driver is set to ZFS, add ZFS utilities to the PATH. This will resolve https://github.com/NixOS/nixpkgs/issues/10127 [Bjørn: prefix commit message with "nixos/docker:", remove extra space before ';']
2015-09-18nixos: fix some typesJan Malakhovski
2015-09-04docker: Minor improvements, fix failing testRagnar Dahlén
- Replace usage of deprecated CLI flag `--daemon` - Introduce `storageDriver` option for module - Fix failing test by using `overlay` storage driver
2015-07-20docker: allow the user to override postStartMateusz Kowalczyk
My use-case: passing -H SOM.EIP.ADD.RES:PORT doesn't result in a .sock file so the service would never go up.
2015-07-05nixos docker: fix service and testLuca Bruno
2015-04-25nixos/docker: set extraOptions to separatedString typeJaka Hudoklin
This change is needed if you want to pass extraOptions to docker in multiple nixos modules.
2014-12-01nixos/docker: fix module, add simple testJaka Hudoklin
2014-11-29nixos: add kubernetes moduleJaka Hudoklin
2014-11-07docker: propagate nix.proxy into daemon environmentBoris Sukholitko
2014-09-03nixos: docker, create docker groupJaka Hudoklin
2014-07-28Upgrade docker to 1.1.2 and add docker modulePaul Colomiets
This version of module has disabled socketActivation, because until nixos upgrade systemd to at least 214, systemd does not support SocketGroup. So socket is created with "root" group when socketActivation enabled. Should be fixed as soon as systemd upgraded. Includes changes from #3015 and supersedes #3028