我阅读并尝试了有关此问题的所有帖子,Docker Docs中的每一行。不幸的是,我的问题仍然存在。
这就是:
bayram@bayram-ubuntu-desktop:~$ sudo docker pull hello-world
Using default tag: latest
Error response from daemon: Get https://registry-1.docker.io/v2/library/hello-world/manifests/latest: Get https://auth.docker.io/token?account=bayram&scope=repository%3Alibrary%2Fhello-world%3Apull&service=registry.docker.io: EOF
bayram@bayram-ubuntu-desktop:~$
奇怪的是,30秒后,我运行了相同的命令并获得了不同的响应:
bayram@bayram-ubuntu-desktop:~$ sudo docker pull hello-world
Using default tag: latest
Error response from daemon: Get https://registry-1.docker.io/v2/library/hello-world/manifests/latest: EOF
bayram@bayram-ubuntu-desktop:~$
3秒后再次尝试:
bayram@bayram-ubuntu-desktop:~$ sudo docker pull hello-world
Using default tag: latest
latest: Pulling from library/hello-world
78445dd45222: Pulling fs layer
error pulling image configuration: Get https://registry-1.docker.io/v2/library/hello-world/blobs/sha256:48b5124b2768d2b917edcb640435044a97967015485e812545546cbed5cf0233: EOF
bayram@bayram-ubuntu-desktop:~$
有谁知道出了什么问题?
我坐在代理后面,使用Ubuntu 16.04桌面。 我添加了
[Service]
Environment="HTTP_PROXY=user:pwd@123.456.789.123:1080/"
到/etc/systemd/system/docker.service.d/http-proxy.conf
,然后运行systemctl daemon-reload
并重新启动Docker守护程序。
这是我的码头信息:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 17.03.0-ce
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 0
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 977c511eda0925a723debdc94d09459af49d082a
runc version: a01dafd48bc1c7cc12bdb01206f9fea7dd6feb70
init version: 949e6fa
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.4.0-64-generic
Operating System: Ubuntu 16.04.2 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.71 GiB
Name: bayram-ubuntu-desktop
ID: JKHU:ZCJJ:TLHR:W7ED:JSH4:OHJC:ZIW5:YPW7:NLIX:ZYGH:UHSN:FNYH
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Http Proxy: http://user:pwd@10.192.17.1:1080
Https Proxy: http://user:pwd@10.192.17.1:1080
Username: bayram
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false