When running docker compose up -d --build, pip (and any other network-dependent build step) fails with:
Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
Containers can reach their own gateway (172.17.0.1) fine, but all external DNS resolution fails.