Skip to content
Snippets Groups Projects
Commit 95809f91 authored by Noah Hilverling's avatar Noah Hilverling
Browse files

Merge branch 'feature/docker-hub-google-mirror' into 'master'

install-docker.sh: use registry mirror mirror.gcr.io

See merge request !1
parents 7728a451 c8ac5505
No related branches found
No related tags found
1 merge request!1install-docker.sh: use registry mirror mirror.gcr.io
Pipeline #14501 failed
#!/bin/sh #!/bin/bash
# #
# This script helps us to prepare a Docker host for the build system # This script helps us to prepare a Docker host for the build system
# #
...@@ -12,6 +12,14 @@ run() { ...@@ -12,6 +12,14 @@ run() {
(set -x; "$@") (set -x; "$@")
} }
sudo mkdir -p /etc/docker
cat <<EOF |sudo tee /etc/docker/daemon.json >/dev/null
{
"registry-mirrors": ["https://mirror.gcr.io"]
}
EOF
echo "Installing Docker via get.docker.com" echo "Installing Docker via get.docker.com"
run curl -LsS https://get.docker.com -o /tmp/get-docker.sh run curl -LsS https://get.docker.com -o /tmp/get-docker.sh
run sh /tmp/get-docker.sh run sh /tmp/get-docker.sh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment