Fix docker proxy providers
This commit is contained in:
11
README.md
11
README.md
@@ -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.
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user