[Docker] 镜像源配置 for Linux

 

$ vi /etc/docker/daemon.json

{
    "registry-mirrors": [
        "https://docker.mirrors.ustc.edu.cn",
        "https://registry.docker-cn.com"
    ],
    "log-driver": "json-file",
    "log-opts": {
        "max-size": "100m",
        "max-file": "3"
    },
    "max-concurrent-downloads": 10,
    "max-concurrent-uploads": 10
}

$ systemctl restart docker

 

Link:https://www.cnblogs.com/farwish/p/12965304.html

你可能感兴趣的:([Docker] 镜像源配置 for Linux)