From 49595c7df59c42dd83f0e58929a12c7498f5bbff Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Fri, 31 May 2024 00:08:40 +0800 Subject: [PATCH] docker mirrors --- dotfiles/etc/docker/daemon.json | 10 ++++++++++ install/docker | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 dotfiles/etc/docker/daemon.json diff --git a/dotfiles/etc/docker/daemon.json b/dotfiles/etc/docker/daemon.json new file mode 100644 index 0000000..676c9a1 --- /dev/null +++ b/dotfiles/etc/docker/daemon.json @@ -0,0 +1,10 @@ +{ + "registry-mirrors": [ + "https://dockerhub.timeweb.cloud", + "https://mirror.gcr.io", + "https://daocloud.io", + "https://c.163.com/", + "https://registry.docker-cn.com", + "https://huecker.io" + ] +} diff --git a/install/docker b/install/docker index 357a486..a28a8a9 100755 --- a/install/docker +++ b/install/docker @@ -33,6 +33,8 @@ sudo apt install -y --autoremove \ sudo usermod -aG docker $(whoami) +sudo cp ../dotfiles/etc/docker/daemon.json /etc/docker/daemon.json + echo echo "Finish!" docker --version