-
Notifications
You must be signed in to change notification settings - Fork 18.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot initiate the connection to archive.ubuntu.com:80 #20394
Comments
As per the logs |
I would check if I knew exactly what to. Which files should I look into or what commands would help me here? |
I think you need check your
and also what's your host ifconfig related configuration. |
I have the same problem I explain in this post, and
From the post I linked, it seems is a problem of the host DNS when you don't specify explicitly non-local DNS such as those from Google, for example for security or institutional reasons. It should be solved if you update your host DNS with
And finally update resolvconf with However, you may not be allowed to do it for security reasons of your instition, like me. In this case I didn't reach a solution. Please, if you find an alternative way to solve this that could work for me share it here. Thank you. |
@vponcelo What are the nameservers listed in your hosts's /etc/resolv.conf ? In the other linked issue you said you are able to ping 8.8.8.8 from your host. Can you try dig @8.8.8.8 archive.ubuntu.com from your host ? The problem could be that your org's security policy might allow DNS queries only to their internal DNS servers and block anything going to external servers. Can you also send your |
Thanks for your answer. @sanimej exactly, I also think this is the problem. The nameservers listed in my host are internal and I'm not allowed to put external ones like those from Google. I guess it should be an alternative solution to reach specific DNS as exceptions or something like that (but I have no clue how). The output of
Also, the output of
Best, |
I also faced the same issue but only while building image from Dockerfile. I was able to apt install packages in interactive mode from container. Any suggestion? Building image from Dockerfile:
From container:
Dockerfile:
|
@vishal-yadav each step in a Dockerfile is executed in a new container. When running For For example
If the |
in Dockerfile i tried below and it worked. RUN http_proxy='http://proxy:port/' https_proxy='http://proxy:port/' apt-get -y update && http_proxy=''http://proxy:port/' https_proxy=''http://proxy:port/' apt-get install -y fortunes |
There's no need to add it to your Dockerfile;
|
i think you should force the connection to ipv4 |
In my case ,my institution was using ipv4 but Ubuntu was trying ipv6 also, so just changing the method from Automatic to Ignore in ipv6 settings worked. |
#30588 was continued in docker/cli#93, and added the ability to configure default proxies for containers in the CLI configuration file; looking at the discussion above, this looks like a configuration issue, and I don't think there's a bug at hand here, so I'll close this issue (feel free to continue the conversation though) |
I am behind a corporate firewall and I have already followed the instructions on this page:
https://github.com/docker/kitematic/wiki/Common-Proxy-Issues-&-Fixes
Thanks to that I am able to access the docker hub. However, "docker build" is failing at the point the container is instructed to install new software. Here is the relevant extract from the console:
Thank you in advance. Now the mandatory info:
$ docker version
Client:
Version: 1.10.1
API version: 1.22
Go version: go1.5.3
Git commit: 9e83765
Built: Thu Feb 11 19:14:21 2016
OS/Arch: windows/amd64
Server:
Version: 1.10.1
API version: 1.22
Go version: go1.5.3
Git commit: 9e83765
Built: Thu Feb 11 20:39:58 2016
OS/Arch: linux/amd64
$ docker info
Containers: 6
Running: 0
Paused: 0
Stopped: 6
Images: 2
Server Version: 1.10.1
Storage Driver: aufs
Root Dir: /mnt/sda1/var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 24
Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Plugins:
Volume: local
Network: host bridge null
Kernel Version: 4.1.17-boot2docker
Operating System: Boot2Docker 1.10.1 (TCL 6.4.1); master : b03e158 - Thu Feb 11 22:34:01 UTC 2016
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 996.2 MiB
Name: default
ID: OGZY:HQCY:WTZS:PRYZ:HGDH:2LMR:26A4:DVXN:SI3L:WUWR:FHJ6:TIMB
Debug mode (server): true
File Descriptors: 10
Goroutines: 22
System Time: 2016-02-17T11:30:39.087794072Z
EventsListeners: 0
Init SHA1:
Init Path: /usr/local/bin/docker
Docker Root Dir: /mnt/sda1/var/lib/docker
Http Proxy: http://proxy1.audatex.es:80
Https Proxy: http://proxy1.audatex.es:80
Labels:
provider=virtualbox
$ uname -a
MINGW64_NT-6.1 AXES-1056 2.4.0(0.292/5/3) 2016-01-07 19:39 x86_64 Msys
The text was updated successfully, but these errors were encountered: