shhnwangjian

docker仓库资源的地址修改

1、新增或者修改/etc/docker目录下的daemon.json文件

样例文件如下

{
  "registry-mirrors": ["https://kuamavit.mirror.aliyuncs.com", "https://registry.docker-cn.com", "https://docker.mirrors.ustc.edu.cn"],
  "max-concurrent-downloads": 10,
  "storage-driver": "overlay2",
  "graph": "/data/docker",
  "log-driver": "json-file",
  "log-level": "warn",
  "log-opts": {
    "max-size": "10m",
    "max-file": "3"
    }
}

2、保存退出,重启docker

systemctl restart docker

3、测试

搜索 docker search centos

下载 docker pull centos

 

分类:

技术点:

相关文章:

  • 2021-11-13
  • 2021-07-12
  • 2021-12-11
  • 2022-02-03
  • 2021-10-24
猜你喜欢
  • 2022-12-23
  • 2022-01-08
  • 2021-03-29
  • 2021-12-21
  • 2021-07-19
相关资源
相似解决方案