September 3, 2015

Developing with Docker over a mobile phone tethering

A few weeks ago I moved my development to Docker. Today I was preparing my development environment to be able to work from an office with limited access to the Internet.

I was trying to provision containers using my Android phone as an Internet link.

The connection failed initially

EduardoMacBookPro: eduardoshanahan$ docker-compose -f dc-Adapters.yml build Building kafka_event_adapter... Step 0 : FROM node Pulling repository Service 'kafka_event_adapter' failed to build: Error while pulling image: Get dial tcp: lookup on read udp no route to host

To fix it, I edited /etc/resolv.conf and added

nameserver nameserver

After it I had to flush the DNS cache

sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder;say cache flushed

and restart docker-machine

docker-machine restart default

The connection is slow compared with my normal wifi, but it allows me to work on my own when not at home or the office.


Can’t pull image on my ubuntu 13.04 #1470

How to Flush DNS Cache in OS X Yosemite with discoveryutil