Docker for Mac: Docker version 18.09.2, build 6247962
I run the following commands:
1. sudo docker run -i -t ubuntu:14.04 /bin/bash
2. ping baidu.com and get :
64 bytes from 220.181.57.216: icmp_seq=1 ttl=37 time=18.2 ms
64 bytes from 220.181.57.216: icmp_seq=2 ttl=37 time=12.8 ms
64 bytes from 220.181.57.216: icmp_seq=3 ttl=37 time=11.2 ms
64 bytes from 220.181.57.216: icmp_seq=4 ttl=37 time=24.6 ms
So my network of the container is ok.
3. apt-get update and get the wrong informations:
Ign http://archive.ubuntu.com trusty InRelease
Ign http://archive.ubuntu.com trusty-updates InRelease
Ign http://archive.ubuntu.com trusty-backports InRelease
Ign http://archive.ubuntu.com trusty Release.gpg
Ign http://archive.ubuntu.com trusty-updates Release.gpg
Ign http://archive.ubuntu.com trusty-backports Release.gpg
Ign http://archive.ubuntu.com trusty Release
Ign http://archive.ubuntu.com trusty-updates Release
Ign http://archive.ubuntu.com trusty-backports Release
Ign http://security.ubuntu.com trusty-security InRelease
Ign http://security.ubuntu.com trusty-security Release.gpg
Ign http://security.ubuntu.com trusty-security Release
Err http://archive.ubuntu.com trusty/main amd64 Packages
SECURITY: URL redirect target contains control characters, rejecting. [IP: 91.189.88.149 80]
Err http://archive.ubuntu.com trusty/restricted amd64 Packages
SECURITY: URL redirect target contains control characters, rejecting. [IP: 91.189.88.149 80]
Err http://archive.ubuntu.com trusty/universe amd64 Packages
SECURITY: URL redirect target contains control characters, rejecting. [IP: 91.189.88.149 80]
Err http://archive.ubuntu.com trusty/multiverse amd64 Packages
SECURITY: URL redirect target contains control characters, rejecting. [IP: 91.189.88.149 80]
Err http://archive.ubuntu.com trusty-updates/main amd64 Packages
...
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/multiverse/binary-amd64/Packages SECURITY: URL redirect target contains control characters, rejecting. [IP: 91.189.88.162 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Thanks!
Expected behavior
Actual behavior
Information
Diagnostic logs