I am following this tutorial, https://docs.docker.com/get-started/part2/#build-the-app.
At the part I need to run this, docker build -t friendlyhello .
, I ran sudo docker build -t friendlyhello .
instead because I have not yet setup proper group and user specifically for Docker.
My setup stuck at this part...
Step 4/7 : RUN pip install -r requirements.txt
---> Running in 74c38677ecc3
Collecting Flask (from -r requirements.txt (line 1))
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fee6c92d150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/flask/
I don't think firewall or ISP are the problem since I can access Flask directly with sudo pip install flask
directly from my host Ubuntu 16.04.
What is the solution to this problem?