From 5ca251646a65fdf1bbd16030b6ae71945492fd4c Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Tue, 12 Dec 2023 22:08:28 +0800 Subject: [PATCH] feat: docker - pulling using containerd --- modules/nixos/core-server.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/nixos/core-server.nix b/modules/nixos/core-server.nix index dc9b978e..bab7a076 100644 --- a/modules/nixos/core-server.nix +++ b/modules/nixos/core-server.nix @@ -92,6 +92,12 @@ virtualisation.docker = { enable = true; + daemon.settings = { + # enables pulling using containerd, which supports restarting from a partial pull + # https://docs.docker.com/storage/containerd/ + "features" = {"containerd-snapshotter" = true; }; + }; + # start dockerd on boot. # This is required for containers which are created with the `--restart=always` flag to work. enableOnBoot = true;