From 7b76a3fd8793aaeb4e09b6076326aa87ad71fc5c Mon Sep 17 00:00:00 2001 From: Mohammadhossein Fakhraei Date: Mon, 14 Jul 2025 13:04:17 +0330 Subject: [PATCH] Fix docker proxy providers --- README.md | 11 ++++++----- iran-docker.sh | 8 ++++---- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index bb2ed69..b2a08be 100644 --- a/README.md +++ b/README.md @@ -40,11 +40,12 @@ sudo ./iran-docker.sh ## Supported Docker Proxies -* https://docker.iranserver.com -* https://docker.haiocloud.com -* https://registry.docker.ir -* https://docker.arvancloud.ir -* https://focker.ir +* docker.kernel.ir +* focker.ir +* registry.docker.ir +* docker.arvancloud.ir +* docker.haiocloud.com +* docker.iranserver.com These proxies are applied to /etc/docker/daemon.json and the Docker service will be restarted automatically. diff --git a/iran-docker.sh b/iran-docker.sh index 7507d1f..1803946 100644 --- a/iran-docker.sh +++ b/iran-docker.sh @@ -33,11 +33,12 @@ declare -A dns_servers=( # Iranian Docker registry mirrors registry_proxies=( - "docker.iranserver.com" - "docker.haiocloud.com" + "docker.kernel.ir" + "focker.ir" "registry.docker.ir" "docker.arvancloud.ir" - "focker.ir" + "docker.haiocloud.com" + "docker.iranserver.com" ) # DNS Management Functions @@ -186,7 +187,6 @@ set_docker_proxy() { echo -e "{\n \"registry-mirrors\": [\"https://$mirror\"]\n}" > /etc/docker/daemon.json # Restart Docker service to apply changes - systemctl daemon-reexec systemctl restart docker echo -e "${GREEN}Docker proxy set to:${NC} $mirror"