3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules
lewo 3fb4eb1c43 nixos/dockerPreloader: preload docker images (#49379)
This module permits to preload Docker image in a VM in order to reduce
OIs on file copies. This module has to be only used in testing
environments, when the test requires several Docker images such as in
Kubernetes tests. In this case,
`virtualisation.dockerPreloader.images` can replace the
`services.kubernetes.kubelet.seedDockerImages` options.

The idea is to populate the /var/lib/docker directory by mounting qcow
files (we uses qcow file to avoid permission issues) that contain images.

For each image specified in
config.virtualisation.dockerPreloader.images:
1. The image is loaded by Docker in a VM
2. The resulting /var/lib/docker is written to a QCOW file

This set of QCOW files can then be used to populate the
/var/lib/docker:
1. Each QCOW is mounted in the VM
2. Symlink are created from these mount points to /var/lib/docker
3. A /var/lib/docker/image/overlay2/repositories.json file is generated
4. The docker daemon is started.
2018-11-03 01:00:53 +01:00
..
config nixos/networking.nix: only setup rpc on glibc 2018-10-30 20:29:28 -05:00
hardware nvidia_x11_beta: reinit at 410.57 2018-10-17 19:30:44 -04:00
i18n/input-method docs: format 2018-09-29 20:51:11 -04:00
installer Merge pull request #48801 from matthewbauer/cloneConfigExtra 2018-10-28 19:05:16 -05:00
misc nixos/kapacitor: new service 2018-11-01 21:53:45 +01:00
profiles Merge pull request #49326 from c0bw3b/nixos/installation-device 2018-10-30 14:13:59 +01:00
programs improve shell.nix warning messages 2018-10-28 14:08:01 +01:00
security apparmor-suid: don't force glibc 2018-10-30 19:50:47 -05:00
services nixos/postgresql: add myself as maintainer 2018-11-02 13:52:33 -05:00
system Merge pull request #49513 from dtzWill/fix/activation-nscd-path 2018-11-02 03:57:25 -05:00
tasks Hide useless errors when waiting for zpool to be ready 2018-10-16 02:45:25 -07:00
testing Add ssh backdoor to VM tests infrastructure. 2018-09-28 10:53:08 +01:00
virtualisation nixos/dockerPreloader: preload docker images (#49379) 2018-11-03 01:00:53 +01:00
module-list.nix nixos/kapacitor: new service 2018-11-01 21:53:45 +01:00
rename.nix nixos/ddclient: fix #49258 2018-10-30 22:18:59 +01:00