Cannot do wget/curl/git/apt-get to internet from within docker container

I wonder if somebody got stuck on the same issue:

Im running Docker compose within an Ubuntu server machine and when I execute “wget/ curl/ etc” from inside the apache container, the downloading thread gets stuck with the “loading headers” message and does not download anything.

It feels like the container cannot access to the internet and so, the wget command does not fetch from the repositories.

I also have this configuration inside
“Options”: {
“com.docker.network.bridge.default_bridge”: “true”,
“com.docker.network.bridge.enable_icc”: “true”,
“com.docker.network.bridge.enable_ip_masquerade”: “true”,
“com.docker.network.bridge.host_binding_ipv4”: “0.0.0.0”,
“com.docker.network.bridge.name”: “docker0”,
“com.docker.network.driver.mtu”: “1500”
Anyone faced the same problem?

Thanks

any solution? same question.