Commit c8ac5505 authored by Alexander A. Klimov's avatar Alexander A. Klimov 😎
Browse files

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

parent 7728a451
Pipeline #14342 failed with stage
in 2 minutes and 46 seconds
#!/bin/sh
#!/bin/bash
#
# This script helps us to prepare a Docker host for the build system
#
......@@ -12,6 +12,14 @@ run() {
(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"
run curl -LsS https://get.docker.com -o /tmp/get-docker.sh
run sh /tmp/get-docker.sh
......
Supports Markdown
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