Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
base: f9bf6cef5415
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: 3fb4eb1c432a
Choose a head ref
  • 1 commit
  • 4 files changed
  • 1 contributor

Commits on Nov 3, 2018

  1. 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.
    nlewo authored and zimbatm committed Nov 3, 2018
    Copy the full SHA
    3fb4eb1 View commit details
    Browse the repository at this point in the history