/etc/docker/daemon.json 相关配置

Dockerfile中执行apt update报错Temporary failure resolving

Temporary failure resolving是指地址解析失败
检查地址是否有问题,如果地址无误,/etc/docker/daemon.json中添加如下dns服务器

1
2
3
4
5
{
"dns": [
"8.8.8.8" # Google DNS server
]
}