Merge pull request #23138 from qoega/add-dockerproxy-to-runner

Add dockerhub-proxy to runner
This commit is contained in:
Ilya Yatsishin 2021-04-28 17:10:28 +03:00 committed by GitHub
commit 8e67cab2a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,17 @@
#!/bin/bash
set -e
mkdir -p /etc/docker/
cat > /etc/docker/daemon.json << EOF
{
"ipv6": true,
"fixed-cidr-v6": "fd00::/8",
"ip-forward": true,
"insecure-registries" : ["dockerhub-proxy.sas.yp-c.yandex.net:5000"],
"registry-mirrors" : ["http://dockerhub-proxy.sas.yp-c.yandex.net:5000"]
}
EOF
dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 &>/var/log/somefile &
set +e