2020年8月28日 星期五

[ 常見問題 ] DNS Not Resolving under Network [CentOS8]

 Source From Here

Question
We can't ping google.com inside Docker container in CentOS8:
$ docker exec -it traefik ping google.com
ping: bad address 'google.com


HowTo
Fast workaround
# sudo nano /etc/firewalld/firewalld.conf

in config file change
  1. FirewallBackend=nftables  
to
  1. FirewallBackend=iptables  
Save change and reload firewalld
# sudo systemctl restart firewalld.service

it should help you work with docker but I advise rollback this setting when docker provides solution.

沒有留言:

張貼留言

[Git 常見問題] error: The following untracked working tree files would be overwritten by merge

  Source From  Here 方案1: // x -----删除忽略文件已经对 git 来说不识别的文件 // d -----删除未被添加到 git 的路径中的文件 // f -----强制运行 #   git clean -d -fx 方案2: 今天在服务器上  gi...