docker 对接器错误:服务器行为异常

eeq64g8w  于 2022-12-18  发布在  Docker
关注(0)|答案(2)|浏览(184)

详细信息:

Client: Docker Enterprise Edition (EE) 2.0
 Version:       17.06.2-ee-10
 API version:   1.30
 Go version:    go1.8.7
 Git commit:    66261a0
 Built: Fri Apr 27 00:38:41 2018
 OS/Arch:       linux/amd64

Server: Docker Enterprise Edition (EE) 2.0
 Engine:
  Version:      17.06.2-ee-10
  API version:  1.30 (minimum version 1.12)
  Go version:   go1.8.7
  Git commit:   66261a0
  Built:        Fri Apr 27 00:40:03 2018
  OS/Arch:      linux/amd64
  Experimental: false

内核版本:

uname -r: 3.10.0-693.21.1.el7.x86_64

操作系统:

OS: Red Hat 7.4 (maipo)

Docker客户端实际上无法连接到Docker Hub来提取ucp映像#37532(https://github.com/moby/moby/issues/37532)。因此,我们利用了docker savedocker load命令。使用docker load解压缩tar文件后,ucp映像就在那里了。
但是,当我们运行映像时,我们收到以下错误:

-bash-4.2$ docker container run --rm -it --name ucp   -v /var/run/docker.sock:/var/run/docker.sock   docker/ucp:3.0.2 install   --host-address <node-ip-addr> --interactive --registry-username [$REGSITRY_PASSWORD] --registry-password [$REGISTRY_USERNAME]
INFO[0000] Your engine version 17.06.2-ee-10, build 66261a0 (3.10.0-693.21.1.el7.x86_64) is compatible with UCP 3.0.2 (736cf3c) 
WARN[0000] Your system uses devicemapper.  We can not accurately detect available storage space.  Please make sure you have at least 3.00 GB available in /var/lib/docker 
Admin Username: admin
Admin Password: 
Confirm Admin Password: 
INFO[0012] Pulling required images... (this may take a while) 
INFO[0012] Pulling docker/ucp-auth:3.0.2                
Please enter your Docker Hub username ([]): ________
Please enter your Docker Hub password (**): 
INFO[0037] Pulling required images... (this may take a while) 
INFO[0037] Pulling docker/ucp-auth:3.0.2                
ERRO[0042] We were unable to pull one or more required images.  Please set REGISTRY_USERNAME and REGISTRY_PASSWORD environment variables for your Docker Hub account on this container with -e flags to run. 
FATA[0042] Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 127.0.0.1:53: server misbehaving 
After referring multiple forums and this article, we had added Google's DNS nameservers.

这是我们的resolv.conf文件:

-bash-4.2$ cat /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
#nameserver 127.0.0.1

search 1234.com
nameserver  127.0.0.1
nameserver      xx.xx.xx.xx
nameserver      xx.xx.xx.xx
nameserver     xx.xx.xx.xx

问题是我们不能重启服务器,因为它位于我们公司的DMZ中(在代理后面),而且还有其他服务在运行,所以我们真的不能重启服务器。
我们请求社区为我们提供一个解决方案。
感谢并问候Aditya

6za6bjd0

6za6bjd01#

查看错误消息的这一部分。We can not accurately detect available storage space. Please make sure you have at least 3.00 GB available in /var/lib/docker
尝试在/var/lib/docker中有更多的空间,在这个路径中安装其他目录/设备,使用符号链接或任何允许docker下载映像的东西。

plicqrtu

plicqrtu2#

@吕蒂罗
我在回答我自己的问题。
这个问题的解决方案在于保存和加载Docker映像(包括所有子依赖映像)。我们不得不求助于这种方法,因为我们的服务器在代理后面。Docker REST API无法建立到Docker Hub(外部世界)的连接。这就是前面提到的错误出现的原因。
离线方法解决了我们的问题。我知道它很笨拙,但它确实有效。
问候Aditya

相关问题