summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@higgsboson.tk>2016-12-20 23:24:17 +0100
committerJörg Thalheim <joerg@higgsboson.tk>2016-12-23 21:39:38 +0100
commitc23032a8b11d0585c1f1aece1d2b0abd82148e82 (patch)
tree306fbb208d2947e211ee8a9b1e5a66c72c20b4f4 /nixos/tests
parent61312a922c1884954fe9821be71d4d223d76702b (diff)
downloadnixpkgs-c23032a8b11d0585c1f1aece1d2b0abd82148e82.tar
nixpkgs-c23032a8b11d0585c1f1aece1d2b0abd82148e82.tar.gz
nixpkgs-c23032a8b11d0585c1f1aece1d2b0abd82148e82.tar.bz2
nixpkgs-c23032a8b11d0585c1f1aece1d2b0abd82148e82.tar.lz
nixpkgs-c23032a8b11d0585c1f1aece1d2b0abd82148e82.tar.xz
nixpkgs-c23032a8b11d0585c1f1aece1d2b0abd82148e82.tar.zst
nixpkgs-c23032a8b11d0585c1f1aece1d2b0abd82148e82.zip
docker: update service units from upstream
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
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/docker-registry.nix2
1 files changed, 0 insertions, 2 deletions
diff --git a/nixos/tests/docker-registry.nix b/nixos/tests/docker-registry.nix
index df24686aba8..109fca440e5 100644
--- a/nixos/tests/docker-registry.nix
+++ b/nixos/tests/docker-registry.nix
@@ -16,13 +16,11 @@ import ./make-test.nix ({ pkgs, ...} : {
 
     client1 = { config, pkgs, ...}: {
       virtualisation.docker.enable = true;
-      virtualisation.docker.socketActivation = false;
       virtualisation.docker.extraOptions = "--insecure-registry registry:8080";
     };
 
     client2 = { config, pkgs, ...}: {
       virtualisation.docker.enable = true;
-      virtualisation.docker.socketActivation = false;
       virtualisation.docker.extraOptions = "--insecure-registry registry:8080";
     };
   };