Try Cloudflare DNS first in GPU container; add troubleshooting note
1.1.1.1 uses a different anycast route than 8.8.8.8 so may reach the container even when Google's servers don't. Falls back to Google if Cloudflare is also unreachable. If all fail (Errno -3), port 53 UDP is blocked at the Docker bridge level — comment has the iptables fix. https://claude.ai/code/session_01WVDg7amsy1TTtxvpku7bcM
This commit is contained in:
@@ -126,8 +126,12 @@ services:
|
|||||||
count: 1
|
count: 1
|
||||||
capabilities: [gpu]
|
capabilities: [gpu]
|
||||||
|
|
||||||
# Reliable DNS for HuggingFace Hub downloads and external API calls
|
# DNS: try host resolver first (works on most networks including corporate/VPN),
|
||||||
|
# fall back to Cloudflare then Google public resolvers.
|
||||||
|
# If all three fail (Errno -3), your firewall is blocking port 53 UDP from Docker.
|
||||||
|
# Fix on the host: sudo iptables -I DOCKER-USER -p udp --dport 53 -j ACCEPT
|
||||||
dns:
|
dns:
|
||||||
|
- 1.1.1.1
|
||||||
- 8.8.8.8
|
- 8.8.8.8
|
||||||
- 8.8.4.4
|
- 8.8.4.4
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user