7

docker 配置国内镜像

 3 years ago
source link: https://www.80shihua.com/archives/2684
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
docker 配置国内镜像

docker 配置国内镜像

版本docker > 1.12

修改/etc/docker/daemon.json文件,没有则手动创建。

{
    "registry-mirrors":[
        "https://registry.docker-cn.com",
        "http://hub-mirror.c.163.com",
        "https://docker.mirrors.ustc.edu.cn"
    ],
    "insecure-registries":[]

}

registry-mirrors添加对应额国内镜像即可。

重启docker服务即可

systemctl restart docker


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK