I'm getting the following error:
'Collecting pydicom
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/pydicom/'
Can someone help ?
Thanks!
Created by Nuno Marques nunoskew Thanks Bruce,
I have able to install the docker container successfully. As you mentioned the problem was on the installation of the docker and configuration of the dns.
Dear Bruce,
I have the same problem "Failed to establish a new connection: [Errno -2]" while building the container. As you have suggested, the problem is with the pip install command for connecting to the Internet. I checked the Internet connection with the following command:
```
Server:~$ docker run -it --rm python /bin/sh
# curl https://www.google.com
curl: (6) Could not resolve host: www.google.com
```
Instead used the following command. It connects to the Internet.
```
Server:~$ docker run -it --rm --net=host python /bin/sh
# curl https://www.google.com
302 Moved
302 Moved
The document has moved
here.
# exit
```
I am not sure how to pass this argument to the docker pip to install using Internet connection?
If I bypass the pip install command. I am able to successfully build, login, and push.
One of the main issue is configuration of dns server on the local machine. I will also have attempted to solve this using the examples from docker website "Configure a DNS server for use by Docker", link:https://docs.docker.com/engine/installation/linux/ubuntulinux/ to solve this issue. I have no result.
Kindly clarify on this issue. Hey Bruce, it didn't work. I'll look into https://github.com/docker/docker/issues/13381 more thoroughly and if i fix it, i'll post the solution to my problem.
Thanks a lot for your help! Nuno, the error seems to indicate a problem with pip reaching out to the internet. Pip is running inside a Docker container so I wonder if there is a problem with your Docker installation. You could try various things, like reaching out to the internet from an interactive container session, e.g.
```
# start up an interactive container session using the base 'python' image
docker run -it --rm python /bin/sh
# now, from inside the container
curl https://www.google.com
exit
```
Does the curl command return a bunch of HTML (Google's landing page)? If it doesn't work you could try using a different computer, or reinstalling Docker on your current machine. also didn't work on https://github.com/brucehoff/dm-python-example. Same error! This happened when you ran 'docker build'?
Can you clone and run 'docker build' on the simple example: https://github.com/brucehoff/dm-python-example ?
(This example also used pydicom.) Or do you encounter the same error?
Drop files to upload
docker build error while installing pydicom page is loading…