Docker Networking Issue

So I kept having issues with connectivity in the docker system I run on my laptop. Couldn’t get it to pull images, build or whatever I needed to do.

$ docker build .
Sending build context to Docker daemon 13.61 MB
Step 1/9 : FROM ubuntu:latest
Get dial tcp: lookup on read udp> i/o timeout

Turns out my docker machine was a bit special - probably because I hop between different networks fairly regularly.

$ docker-machine provision default
$ docker-machine restart default
$ eval $(docker-machine env default)

This seems to have fixed it - I probably didn’t need to re-provision it - but I don’t run much on here so it’s easy to nuke and start again. :)