Skip to content
Snippets Groups Projects
Commit 42517d32 authored by godog's avatar godog
Browse files

base-docker: add registry mirror setup

parent e880282c
No related branches found
No related tags found
No related merge requests found
Pipeline #93663 passed with warnings
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment