I\'m following the fig guide to using docker with a python application, but when docker gets up to the command
RUN pip install -r requirements.txt
In my case, with docker version 1.13.0
and docker-machine 0.9.0
under Ubuntu 16.04
I had to modify slightly Tanzaho's answer (2. Modifying Docker config) as follows:
Log into Ubuntu as a user with sudo privileges.
Open the /etc/default/docker file for editing:
sudo vim /etc/default/docker
Add the following setting for Docker.
DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"
Save and close the file.
Restart the Docker daemon :
sudo service docker restart