前端analysis | 3w & 1h

《Docker》- docker v19版本配置镜像加速

2020-03-11

docker v19配置镜像加速

dameon.josn

1
2
3
4
5
6
7
8
9
10
11
12
# ~/.docker/daemon.json
{
"experimental" : true,
"registry-mirrors" : [
"https://f62945bb.mirror.aliyuncs.com",
"https://docker.mirrors.ustc.edu.cn",
"http://f1361db2.m.daocloud.io",
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com"
],
"debug" : true
}

docker info 验证

1
$ docker info 

config.json

1
2
3
4
5
6
7
8
9
10
# ~/.docker/config.json:
{
"auths" : {
"https://index.docker.io/v1/" : {
}
},
"stackOrchestrator" : "swarm",
"experimental" : "enabled",
"credsStore" : "desktop"
}

拉取镜像效果

参考

docker register

Tags: docker
使用支付宝打赏
使用微信打赏

若你觉得我的文章对你有帮助,欢迎点击上方按钮对我打赏