From 987263c031dcb642ab8be5d9924fd07dd7a5a5dc Mon Sep 17 00:00:00 2001 From: "Z. Cliffe Schreuders" Date: Tue, 18 Mar 2025 14:14:35 +0000 Subject: [PATCH] Remove Docker proxy configuration - so that the local register mirror (configured in the template) gets used instead -- related to the template --- modules/utilities/unix/container/docker/docker.pp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/utilities/unix/container/docker/docker.pp b/modules/utilities/unix/container/docker/docker.pp index 85100e5f3..96e9c3ae0 100644 --- a/modules/utilities/unix/container/docker/docker.pp +++ b/modules/utilities/unix/container/docker/docker.pp @@ -46,6 +46,13 @@ include 'docker' # provider => shell, # } +# remove proxy config (it's in the template, and this overrides) +exec { 'remove_docker_proxy_conf': + command => 'sudo rm /etc/systemd/system/docker.service.d/*proxy.conf', + path => ['/bin', '/usr/bin', '/sbin', '/usr/sbin'], + onlyif => 'test -d /etc/systemd/system/docker.service.d && ls /etc/systemd/system/docker.service.d/*proxy.conf', +} + # download (pull) a set of images $images.each |$image| { docker::image { "$image": }