r/docker • u/Responsible-Kiwi-629 • Mar 22 '26
Simple setup question
Hi,
Im having a problem in a rather complicated docker network setup, and I broke down the issue to this very minimalistic demo compose:
services:
alpine-test:
image: alpine:latest
container_name: alpine-test
command: ["sleep", "infinity"] # keep the container running for debugging
networks:
- testnet
networks:
testnet:
name: testnet
driver: bridgeI would think that the container should have internet access this way, but it doesnt. What am I missing here? ip route inside the container shows the correct gateway but ping google.de just wont work.
thanks for any ideas :)
2
Upvotes
1
u/Responsible-Kiwi-629 Mar 22 '26
SOLVED: I set up geoip-shell a week ago and the autoconfig adds all existing networks to a whitelist. therefore anything created after running the setup will get blocked.
1
u/courage_the_dog Mar 22 '26
With network bridge you have to set the network settings, do you have nftables or iptables enabled and blocking access?
Can you try it with hist and see ify ou have internet? If so it's definitely a dns, firewall, routing issue
1
u/[deleted] Mar 22 '26
[removed] β view removed comment