Commit 91e29193 authored by nanahira's avatar nanahira

add registry donfig

parent f367c460
......@@ -5,3 +5,8 @@
systemd:
name: sshd
state: restarted
- name: reload_docker
become: true
systemd:
name: docker
state: reloaded
......@@ -131,12 +131,10 @@
state: directory
- name: docker 配置
become: true
copy:
content: |
{
"live-restore": true
}
template:
src: daemon.json.j2
dest: /etc/docker/daemon.json
notify: reload_docker
- name: docker 启动
become: true
systemd:
......
{
{% if registry is defined %}
"registry-mirrors": [
"{{registry}}"
],
{% endif %}
"live-restore": true
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment