I was trying to run below command for testing docker connectivity to INTERNET.
docker run appropriate/curl https://google.com
It doesn't work and says cannot resolve the host. Then I checked the docker0 bridge which is used in this process.
xxxx-yy$ ip route
default via 10.0.2.2 dev enp0s3 proto static metric 100
10.0.2.0/24 dev enp0s3 proto kernel scope link src 10.0.2.15 metric 100
169.254.0.0/16 dev enp0s3 scope link metric 1000
172.26.0.0/16 dev docker0 proto kernel scope link src 172.26.0.1 linkdown
I also checked in another system where it was working fine and there was no "linkdown". Could anyone help as why in my system the docker0 status is down (linkdown). I have restarted then reinstalled the docker but with no success. I also changed the IP range from default to this new one.
The docker is running on a Ubuntu virtualbox.