Docker Community Forums

Share and learn in the Docker community.

First build and problem

docker
build

(Samuelcarvalho) #1

Hi, this is my first use of docker.

I started accessing https://docs.docker.com/get-started/part2/#the-app-itself

My build stop in
RUN pip install --trusted-host pypi.python.org -r requirements.txt -v

show this error

Collecting Flask (from -r requirements.txt (line 1))
  1 location(s) to search for versions of Flask:
  \* https://pypi.python.org/simple/flask/
  Getting page https://pypi.python.org/simple/flask/
  Starting new HTTPS connection (1): pypi.python.org
  Incremented Retry for (url='/simple/flask/'): Retry(total=4, connect=None, read=None, redirect=None)
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f05dd6cf990>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/flask/

I found many information about proxy, and set http_proxy, but I’m NOT behind a proxy, and this problem happen.

this is my ifconfig,

root@Ubuntu-samuca:/home/samuel/Docker/teste# ifconfig
docker0   Link encap:Ethernet  HWaddr 02:42:aa:4e:20:99  
          inet addr:172.17.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
          inet6 addr: fe80::42:aaff:fe4e:2099/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:729 errors:0 dropped:0 overruns:0 frame:0
          TX packets:229 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:40175 (40.1 KB)  TX bytes:20244 (20.2 KB)

enp1s0    Link encap:Ethernet  HWaddr 64:1c:67:83:4b:21  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:14937 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14937 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1487305 (1.4 MB)  TX bytes:1487305 (1.4 MB)

wlp2s0    Link encap:Ethernet  HWaddr 5c:c9:d3:6c:c0:ca  
          inet addr:10.0.0.5  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::469c:b134:5227:6df8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:549399 errors:0 dropped:0 overruns:0 frame:0
          TX packets:359879 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:738654210 (738.6 MB)  TX bytes:37459261 (37.4 MB)

I’d like help for resolv it.

thanks


(Samuelcarvalho) #2

I change my network and works.
the network with problem is 10.0.0.0/24 and I connect in a network 192.168.0.0/24.

But I’d like to know why its happened.