atxserver2 icon indicating copy to clipboard operation
atxserver2 copied to clipboard

android-provider docker运行的时候,出现Temporary failure in name resolution错误

Open codeskyblue opened this issue 6 years ago • 1 comments

Temporary failure in name resolution

codeskyblue avatar Mar 29 '19 05:03 codeskyblue

查了一下,看解释都是dns的问题,不清楚是哪个容器,我说一下我知道的解决办法

  1. 修改docker的配置,指定所有容器的dns /etc/docker/daemon.json
{
  "dns" : [
    "114.114.114.114",
    "8.8.8.8"
  ]
}
  1. 直接使用host模式可以避免这个问题
  2. 启动时添加如下参数 --dns ip

参考从入门到实践 dns

yaming116 avatar Oct 04 '19 14:10 yaming116