从远程dockerregistry中拉出图像失败,超时exception

我在本地部署了一个映像,如下所示

[root@user]# docker tag hello-world localhost:5000/hello-world [root@user]# docker push localhost:5000/hello-world The push refers to a repository [localhost:5000/hello-world] a02596fdd012: Pushed latest: digest: sha256:a18ed77532f6d6781500db650194e0f9396ba5f05f8b50d4046b294ae5f83aa4 size: 524 

步骤1:

 [root@user]# docker pull localhost:5000/hello-world Using default tag: latest latest: Pulling from hello-world Digest: sha256:a18ed77532f6d6781500db650194e0f9396ba5f05f8b50d4046b294ae5f83aa4 Status: Image is up to date for localhost:5000/hello-world:latest 

它工作正常

我试图从远程机器拉相同的图像

第2步:

 [root@user]# docker tag hello-world server-ip:5000/hello-world 

当我在做docker推,我得到以下错误

 communication error occurred: \"Operation timed out\"\r\n</FONT>\r\n</TD></TR>\r\n<TR><TD>\r\n<FONT face=\"Helvetica\">\r\nThe Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time. 

我已经在远程机器的dockerregistry中添加了服务器IP,但仍然看到这个错误

以下是服务器和客户端docker信息 –

我的docker信息

 Containers: 12 Running: 2 Paused: 0 Stopped: 10 Images: 8 Server Version: 1.12.6 Storage Driver: aufs Root Dir: /var/lib/docker/aufs Backing Filesystem: extfs Dirs: 152 Dirperm1 Supported: true Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: host bridge null overlay Swarm: inactive Runtimes: runc Default Runtime: runc Security Options: apparmor seccomp Kernel Version: 4.2.0-16-generic Operating System: Ubuntu 15.10 OSType: linux Architecture: x86_64 CPUs: 4 Total Memory: 15.56 GiB ID: S6UJ:M6DP:QI2L:M2PS:HZCP:OVTZ:FMVX:JKKS:Z6MJ:VHIL:SXTM:EDQO Docker Root Dir: /var/lib/docker Debug Mode (client): false Debug Mode (server): false Http Proxy: http://proxy:8080 Https Proxy: https://proxy:8080 Registry: https://index.docker.io/v1/ WARNING: No swap limit support Insecure Registries: server-ip:5000 127.0.0.0/8 

服务器docker信息

 Containers: 20 Running: 1 Paused: 0 Stopped: 19 Images: 29 Server Version: 1.12.6 Storage Driver: aufs Root Dir: /var/lib/docker/aufs Backing Filesystem: extfs Dirs: 253 Dirperm1 Supported: true Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: null bridge host overlay Swarm: inactive Runtimes: runc Default Runtime: runc Security Options: apparmor seccomp Kernel Version: 4.2.0-16-generic Operating System: Ubuntu 15.10 OSType: linux Architecture: x86_64 CPUs: 4 Total Memory: 15.56 GiB ID: ZM6K:OVPZ:VKMU:SV22:4HT4:AI66:7XQB:SSRP:X54A:XASV:UYYA:3X5I Docker Root Dir: /var/lib/docker Debug Mode (client): false Debug Mode (server): false Http Proxy: http://proxy:8080/ Registry: https://index.docker.io/v1/ WARNING: No swap limit support Insecure Registries: ip:5000 127.0.0.0/8