How to resolve Internet Issues in Docker

On a Fresh Install, On a New OS…Fedora, I noticed I was unable to pull in docker base images. So I ran the following commands to troubleshoot and subsequently fix the issue

[bantrain]$ nslookup google.com
Server:         192.168.1.3
Address:        192.168.1.3#53
Non-authoritative answer:
Name:   google.com
Address: 216.58.223.206
Name:   google.com
Address: 2c0f:fb50:4003:802::200e
[bantrain]$ sudo cat /etc/resolv.conf
[sudo] password for bantrain:
# Generated by NetworkManager
search lan
nameserver 192.168.1.3
[bantrain]$ sudo cat /etc/docker/daemon.json
{
    "dns": ["8.8.8.8", "192.168.1.3"]
}
[bantrain]$ sudo systemctl start docker

After setting a new DNS server, seems to solve the issue for me. So this solution may vary.

Docker

About Dennis Otugo

Dennis Otugo is a Consultant at Bantrain, and loves all things DevOps. In his role, he enables enterprise customers in their digital transformation journey and helps architect cloud-native solutions

Previous Entries How to Backup your Kubernetes Cluster using Bash Next Entries How to enable Audit Logs on AWS RDS for Postgres 9