Skip to content
Snippets Groups Projects
Commit 25435b9d authored by godog's avatar godog
Browse files

base-docker: add registry mirror setup

parent e880282c
No related branches found
No related tags found
1 merge request!315base-docker: add registry mirror
Pipeline #93665 passed
......@@ -45,6 +45,15 @@
content: "33 3 * * * root runcron --quiet /usr/local/bin/docker-cleanup\n"
mode: 0644
- name: Create registry mirror configuration files
template:
src: registry-mirror.yml.j2
dest: "/etc/containers/registries.conf.d/{{ item.key }}.conf"
owner: root
group: root
mode: '0644'
loop: "{{ registry_mirrors | dict2items }}"
- import_tasks: start.yml
# Grab the list of currently running containers, and stop / cleanup
......
[[registry]]
location = "{{ item.key }}"
[[registry.mirror]]
location = "{{ item.value }}"
insecure = true
......@@ -9,3 +9,5 @@ podman_version_by_distro:
bullseye: 3
bookworm: 4
trixie: 5
registry_mirrors: {}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment