Fix docker proxy providers

This commit is contained in:
Mohammadhossein Fakhraei
2025-07-14 13:04:17 +03:30
parent 47f6ab4fab
commit 7b76a3fd87
2 changed files with 10 additions and 9 deletions

View File

@@ -40,11 +40,12 @@ sudo ./iran-docker.sh
## Supported Docker Proxies ## Supported Docker Proxies
* https://docker.iranserver.com * docker.kernel.ir
* https://docker.haiocloud.com * focker.ir
* https://registry.docker.ir * registry.docker.ir
* https://docker.arvancloud.ir * docker.arvancloud.ir
* https://focker.ir * docker.haiocloud.com
* docker.iranserver.com
These proxies are applied to /etc/docker/daemon.json and the Docker service will be restarted automatically. These proxies are applied to /etc/docker/daemon.json and the Docker service will be restarted automatically.

View File

@@ -33,11 +33,12 @@ declare -A dns_servers=(
# Iranian Docker registry mirrors # Iranian Docker registry mirrors
registry_proxies=( registry_proxies=(
"docker.iranserver.com" "docker.kernel.ir"
"docker.haiocloud.com" "focker.ir"
"registry.docker.ir" "registry.docker.ir"
"docker.arvancloud.ir" "docker.arvancloud.ir"
"focker.ir" "docker.haiocloud.com"
"docker.iranserver.com"
) )
# DNS Management Functions # DNS Management Functions
@@ -186,7 +187,6 @@ set_docker_proxy() {
echo -e "{\n \"registry-mirrors\": [\"https://$mirror\"]\n}" > /etc/docker/daemon.json echo -e "{\n \"registry-mirrors\": [\"https://$mirror\"]\n}" > /etc/docker/daemon.json
# Restart Docker service to apply changes # Restart Docker service to apply changes
systemctl daemon-reexec
systemctl restart docker systemctl restart docker
echo -e "${GREEN}Docker proxy set to:${NC} $mirror" echo -e "${GREEN}Docker proxy set to:${NC} $mirror"