Docker networking
Can't ping out to internet from within docker container. Receive "bad address", but works from normal terminal on Gold. Restarting docker service with systemctl didn't help and name resolution within container has the right DNS servers configured.
-
sounds like you might need to give it a route in iptables. try this but substitute whatever container name you are working with for the inspect "adguardhome" part of the command.
sudo ip route add 172.16.0.0/24 dev br-$(sudo docker network inspect adguardhome_default |jq -r '.[0].Id[0:12]') table lan_routable
sudo ip route add 172.16.0.0/24 dev br-$(sudo docker network inspect adguardhome_default |jq -r '.[0].Id[0:12]') table wan_routable
Please sign in to leave a comment.
Comments
2 comments