🖼️ Add mirror.gcr.io as Docker registry mirror

This commit is contained in:
Jérôme Petazzoni
2021-11-12 16:19:53 +01:00
parent dc89be170a
commit 2893ec8c7f

View File

@@ -236,6 +236,12 @@ _cmd_docker() {
sudo add-apt-repository 'deb https://download.docker.com/linux/ubuntu bionic stable'
sudo apt-get -q update
sudo apt-get -qy install docker-ce
# Add registry mirror configuration.
if ! [ -f /etc/docker/daemon.json ]; then
echo '{\"registry-mirrors\": [\"https://mirror.gcr.io\"]}' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker
fi
"
##VERSION## https://github.com/docker/compose/releases