Docker中使用git clone 报错 Could not resolve host: github.com; Unknown error

Linux   Docker  

解决方案:

  1. vim /etc/resolv.conf

将 nameserver 127.0.0.11 改为 nameserver 8.8.8.8

  1. nameserver 8.8.8.8
  2. options timeout:1 rotate ndots:0

即可正常 git clone



Top