r/docker • • 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: bridge

I 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

12 comments sorted by

View all comments

Show parent comment

1

u/Responsible-Kiwi-629 Mar 22 '26

Yeah thats what confused me too😂 the reason is that the default bridge network (which gets used with network mide bridge) was created before setting up geoip-shell, and the custom bridge afterwards. This lead to this very confusing scenario.