gpt4 book ai didi

docker - 在将镜像推送到Docker集线器时如何解决服务器错误?

转载 作者:行者123 更新时间:2023-12-02 18:17:15 25 4
gpt4 key购买 nike

我已经从Dockerfile构建了镜像,将其提交,现在正尝试将其推送到Hub。我运行的命令:

sudo docker push lisahelm/mongo:v2

打印输出:
The push refers to a repository [lisahelm/mongo] (len: 1)  
7b6d0719b415: Image already exists
975e0be2d43f: Image already exists
ee08822aa3f9: Image already exists
96f2191238d5: Image already exists
07f8e8c5e660: Image already exists
37bea4ee0c81: Image already exists
a82efea989f9: Image already exists
e9e06b06e14c: Image already exists
FATA[0015] Error pushing to registry: Server error: 400 trying to push lisahelm/mongo:v2 manifest

信息我已经看到人们要求其他问题:
Docker version 1.6.0, build 4749651/1.6.0
Containers: 4
Images: 22
Storage Driver: devicemapper
Pool Name: docker-202:1-263695-pool
Pool Blocksize: 65.54 kB
Backing Filesystem: extfs
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 2.222 GB
Data Space Total: 107.4 GB
Data Space Available: 4.88 GB
Metadata Space Used: 2.58 MB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.145 GB
Udev Sync Supported: true
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.89-RHEL6 (2014-09-01)
Execution Driver: native-0.2
Kernel Version: 3.14.35-28.38.amzn1.x86_64
Operating System: Amazon Linux AMI 2015.03
CPUs: 1
Total Memory: 1.957 GiB
Name: ip-172-31-11-134
ID: WVRW:3RM3:L4KL:YABF:JGSK:S6ML:U2CH:5Z5G:67CY:24BF:3DIE:E6TA
Username: lisahelm
Registry: [https://index.docker.io/v1/]

最佳答案

您正在使用运行RHEL的Amazon AMI。

Amazon在这些计算机上运送的docker有缺陷。

解决方案是要么切换到Ubuntu,要么在实例上手动更新docker。

您可以在此处阅读有关上下文和AMZ开发人员的回答:https://github.com/docker/docker/issues/13143#issuecomment-102522728

在这里为另一个提出更新解决方案的用户:https://github.com/docker/distribution/issues/538#issuecomment-104241554

最后在这里找到有关此错误的亚马逊支持论坛:https://forums.aws.amazon.com/thread.jspa?messageID=622774

关于docker - 在将镜像推送到Docker集线器时如何解决服务器错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30385956/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com