Docker can't reach the outside net

Running a command similar to this one results in apt-get just hanging and finally timing out.

docker run -it --rm debian:stable "apt-get update"  

On a typical install run

docker network inspect bridge  

What you are looking for is

"Config": [
        "Subnet": "",
        "Gateway": ""


"Options": {
    "": "true",
    "": "true",
    "": "true",
    "": "",
    "": "docker0",
    "": "1500"

If you run

ip route list  

and you don't see in there or docker0 that is your problem.

sudo ip route add dev docker0  

will likely fix this problem.