1 # this test creates a simple GNU image with docker tools and sees if it executes
3 import ./make-test-python.nix ({ pkgs, ... }:
5 name = "docker-tools-overlay";
6 meta = with pkgs.lib.maintainers; {
7 maintainers = [ lnl7 roberth ];
14 virtualisation.docker.enable = true;
15 virtualisation.docker.storageDriver = "overlay2";
20 docker.wait_for_unit("sockets.target")
23 "docker load --input='${pkgs.dockerTools.examples.bash}'",
24 "docker run --rm ${pkgs.dockerTools.examples.bash.imageName} bash --version",
27 # Check if the nix store has correct user permissions depending on what
28 # storage driver is used, incorrectly built images can show up as readonly.
29 # drw------- 3 0 0 3 Apr 14 11:36 /nix
30 # drw------- 99 0 0 100 Apr 14 11:36 /nix/store
31 docker.succeed("docker run --rm -u 1000:1000 ${pkgs.dockerTools.examples.bash.imageName} bash --version")