Hello Gabriel Castillo,
Thanks for your question.
Try the following as torubleshooting steps to pindown the issue:
Check Docker network configuration
docker network ls
docker network inspect bridge
Inspect the specific container's network details
docker inspect <container_name>
Verify DNS configuration inside the container:
cat /etc/resolv.conf
Test network connectivity from the host itself to see if its a host issue
ping 8.8.8.8
ping google.com
Also see the stackoverlow post for an ubuntu machine https://stackoverflow.com/questions/73313328/how-to-troubleshoot-docker-network-issues
You can mark it 'Accept Answer' and 'Upvote' if this helped you
Regards,
Abiola