From 4e69f4b776bd82d139511e5f3ef5dd2e79be8ab6 Mon Sep 17 00:00:00 2001 From: Marcos Lilljedahl Date: Sun, 6 Oct 2024 23:03:42 -0300 Subject: [PATCH] add gcr mirro --- dockerfiles/dind/Dockerfile | 9 ++++----- dockerfiles/dind/daemon.json | 1 + 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dockerfiles/dind/Dockerfile b/dockerfiles/dind/Dockerfile index ef5b3e5..4a47b7e 100644 --- a/dockerfiles/dind/Dockerfile +++ b/dockerfiles/dind/Dockerfile @@ -25,14 +25,13 @@ RUN wget -O /tmp/scout.tar.gz https://github.com/docker/scout-cli/releases/downl && chmod +x /usr/local/bin/docker-scout \ && ln -s $(which docker-scout) /usr/lib/docker/cli-plugins \ && rm /tmp/scout.tar.gz - - + + # Add bash completion and set bash as default shell -RUN mkdir /etc/bash_completion.d \ - && curl -sS https://raw.githubusercontent.com/docker/cli/master/contrib/completion/bash/docker -o /etc/bash_completion.d/docker \ +RUN curl -sS https://raw.githubusercontent.com/docker/cli/master/contrib/completion/bash/docker -o /etc/bash_completion.d/docker \ && sed -i "s/ash/bash/" /etc/passwd - + # Replace modprobe with a no-op to get rid of spurious warnings # (note: we can't just symlink to /bin/true because it might be busybox) RUN rm /sbin/modprobe && echo '#!/bin/true' >/sbin/modprobe && chmod +x /sbin/modprobe diff --git a/dockerfiles/dind/daemon.json b/dockerfiles/dind/daemon.json index 3d36f55..8276eca 100644 --- a/dockerfiles/dind/daemon.json +++ b/dockerfiles/dind/daemon.json @@ -2,6 +2,7 @@ "experimental": true, "debug": true, "log-level": "info", + "registry-mirrors": ["https://mirror.gcr.io"], "insecure-registries": [ "127.0.0.1" ],