@sam I tried to ping with this command
sudo docker run --dns 8.8.8.8 --rm -it alpine ping -c 1 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
--- 8.8.8.8 ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss
You was right problem with network. Do you know how to fix?