1
1

Added registry-mirrors to daemon.json

This commit is contained in:
Derek Smith 2022-05-24 14:15:39 -04:00
parent 0c36702da5
commit 1ccc909783
Signed by: farscapian
GPG Key ID: 8F1CD799CCA516CC

View File

@ -29,6 +29,7 @@ config:
- jq - jq
- git - git
- nano - nano
- wait-for-it
groups: groups:
- docker - docker
@ -120,6 +121,15 @@ config:
UsePAM no UsePAM no
LogLevel INFO LogLevel INFO
- path: /etc/docker/daemon.json
content: |
{
"registry-mirrors": [
"${REGISTRY_URL}"
]
}
runcmd: runcmd:
- cat ${REMOTE_HOME}/docker.asc | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg - cat ${REMOTE_HOME}/docker.asc | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
- sudo rm ${REMOTE_HOME}/docker.asc - sudo rm ${REMOTE_HOME}/docker.asc