View Categories

تغییر میرور داکر ایران(افزایش سرعت آپدیت)

 

در این آموزش تغییر میرور داکر در سرورهای مجازی/اختصاصی ایران آموزش داده می شود.

تنظیم میرور داکر برای رفع تحریم و همچنین افزایش سرعت انجام می گردد.

ابتدا با برنامه putty به سرور مجازی یا سرور اختصاصی متصل شوید و سپس در ترمینال دستور زیر را اجرا کنید.

 

این دستور بطور خودکار repository را در فایل daemon.json جایگزین می کند.

 

پس از اجرا دستورات،  باید داکر را بصورت زیر ریست کنید.

docker logout
systemctl daemon-reload
systemctl restart docker

لیست ریپازیتوری های ایران برای داکر بصورت زیر می باشد:

 

میرور arvancloud  :(پینگ 24ms)

docker.arvancloud.ir

دستور ssh(جایگزینی میرور):


sudo bash -c 'cat > /etc/docker/daemon.json <<EOF
{
"insecure-registries" : ["https://docker.arvancloud.ir"],
"registry-mirrors": ["https://docker.arvancloud.ir"]
}
EOF'

میرور dockerhost  :(پینگ 26ms)

docker.host

دستور ssh(جایگزینی میرور):

sudo bash -c 'cat > /etc/docker/daemon.json <<EOF
{
"insecure-registries" : ["https://docker.host:5000"],
"registry-mirrors": ["https://docker.host:5000"]
}
EOF'

میرور dockerir  :(پینگ 105ms)

registry.docker.ir

دستور ssh(جایگزینی میرور):

sudo bash -c 'cat > /etc/docker/daemon.json <<EOF
{
"insecure-registries" : ["https://registry.docker.ir"],
"registry-mirrors": ["https://registry.docker.ir"]
}
EOF'

میرور iranserver  :(پینگ 37ms)

docker.iranserver.com

دستور ssh(جایگزینی میرور):

sudo bash -c 'cat > /etc/docker/daemon.json <<EOF
{
"insecure-registries" : ["https://docker.iranserver.com"],
"registry-mirrors": ["https://docker.iranserver.com"]
}
EOF'

میرور dockerme  :(پینگ 105ms)

docker.dockerme.ir

دستور ssh(جایگزینی میرور):

sudo bash -c 'cat > /etc/docker/daemon.json <<EOF
{
"insecure-registries" : ["https://docker.iranserver.com"],
"registry-mirrors": ["https://docker.iranserver.com"]
}
EOF'

 

میرور manageit  :(پینگ 24ms)

docker.manageit.ir

دستور ssh(جایگزینی میرور):

sudo bash -c 'cat > /etc/docker/daemon.json <<EOF
{
"insecure-registries" : ["https://docker.manageit.ir"],
"registry-mirrors": ["https://docker.manageit.ir"]
}
EOF'

 

میرور runflare  :(پینگ 22ms)

mirror-docker.runflare.com

دستور ssh(جایگزینی میرور):

sudo bash -c 'cat > /etc/docker/daemon.json <<EOF
{
"insecure-registries" : ["https://mirror-docker.runflare.com"],
"registry-mirrors": ["https://mirror-docker.runflare.com"]
}
EOF'

میرور gcr  :(پینگ 115ms)

mirror.gcr.io

دستور ssh(جایگزینی میرور):

sudo bash -c 'cat > /etc/docker/daemon.json <<EOF
{
"insecure-registries" : ["https://mirror.gcr.io/registry"],
"registry-mirrors": ["https://mirror.gcr.io/registry"]
}
EOF'

 

میرور haiocloud  :(پینگ 482ms)

helm.twun.io

دستور ssh(جایگزینی میرور):

sudo bash -c 'cat > /etc/docker/daemon.json <<EOF
{
"insecure-registries" : ["https://docker.haiocloud.com"],
"registry-mirrors": ["https://docker.haiocloud.com"]
}
EOF'

 

 

میرور ustc  :(پینگ 115ms)

mirror.gcr.io

دستور ssh(جایگزینی میرور):

sudo bash -c 'cat > /etc/docker/daemon.json <<EOF
{
"insecure-registries" : ["https://docker.mirrors.ustc.edu.cn"],
"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn"]
}
EOF'

 

میرور twun  :(پینگ 122ms)

helm.twun.io

دستور ssh(جایگزینی میرور):

sudo bash -c 'cat > /etc/docker/daemon.json <<EOF
{
"insecure-registries" : ["https://helm.twun.io"],
"registry-mirrors": ["https://helm.twun.io"]
}
EOF'

 

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *

  1. کوهی گفت:

    اینها همون مخازن داکر هستند؟
    برای آپدیت استفاده میشن یا دانلود پکیج؟

    1. برای هر دو مورد قابل استفاده می باشد.