对于windows下,直接修改docker desktop界面的配置项目。对于rocky linux下面,对应的配置文件存储在:
vim /etc/docker/daemon.json
文件可以配置镜像源之类的参数,存储的位置由graph配置项目决定,详情看下面示例。
{
"registry-mirrors": [
"http://registry.docker-cn.com",
"http://docker.mirrors.ustc.edu.cn"
],
"insecure-registries": [
"registry.docker-cn.com",
"docker.mirrors.ustc.edu.cn"
],
"debug": true,
"experimental": true,
"graph":"/dpan/docker/lib/docker",
"log-driver":"json-file",
"log-opts":{
"max-size":"50m",
"max-file":"1"
}
}
标签:存储,cn,mirrors,默认,registry,edu,docker,Docker
From: https://www.cnblogs.com/podolski/p/16613961.html