From 8eccd39ca479d7757f27bed497e8c31e698fc920 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Fri, 11 Nov 2022 20:40:08 +0100 Subject: [PATCH] Make insecure registries work for podman --- modules/docker/default.nix | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/modules/docker/default.nix b/modules/docker/default.nix index c10b736..03743bf 100644 --- a/modules/docker/default.nix +++ b/modules/docker/default.nix @@ -18,14 +18,21 @@ in dockerCompat = true; defaultNetwork.dnsname.enable = true; }; - virtualisation.docker = { - autoPrune = { - enable = true; - dates = "weekly"; - }; - - daemon.settings = { - insecure-registries = [ "docker02.bedum.horus.nu:5000" "yocto-build-server.bedum.horus.nu:5000" ]; + # virtualisation.docker = { + # autoPrune = { + # enable = true; + # dates = "weekly"; + # }; + virtualisation.containers = { + registries = { + insecure = [ "docker02.bedum.horus.nu:5000" "yocto-build-server.bedum.horus.nu:5000" "containers.internal.horus.nu" ]; + search = [ + "docker.io" + "quay.io" + "docker02.bedum.horus.nu:5000" + "yocto-build-server.bedum.horus.nu:5000" + "containers.internal.horus.nu" + ]; }; };