我的情况是我有两个VM。一个包含泊坞窗注册表,另一个是我的Minikube VM v0.34.1。在minikube虚拟机中时,我尝试将docker映像推送到注册表。 docker push x.x.x.x:5000/image
。反过来我得到这个
1B0ff9cfff: Preparing
1B99b75fdb: Preparing
1B4cd8cf79: Preparing
1B53e365f3: Pushing 1.504MB/5.529MB
它在这里冻结,然后以相同的结果重试几分钟(上传的确切数量略有不同)。我最终会收到此错误:
HTTP/1.x transport connection broken: write tcp 10.0.2.15:44320->10.100.0.240:8080: write: connection reset by peer
我尝试在nginx后面运行它,结果完全相同。我从insecure-registry="x.x.x.x:5000"
开始minikube,我在docker注册表端开始活动,它显示存储库至少已部分创建。
那么为什么docker push可能会挂起,我如何防止部分完成的docker push?
EDIT_1:
EDIT_2:
Minikube中的Docker日志
Mar 04 21:07:11 minikube dockerd[2472]: time="2019-03-04T21:07:11.623859125Z" level=error msg="Upload failed, retrying: EOF"
Mar 04 21:07:11 minikube dockerd[2472]: time="2019-03-04T21:07:11.738542466Z" level=error msg="Upload failed, retrying: EOF"
Mar 04 21:07:11 minikube dockerd[2472]: time="2019-03-04T21:07:11.935610635Z" level=error msg="Upload failed, retrying: received unexpected HTTP status: 504 Connection Timed Out"
Mar 04 21:07:12 minikube dockerd[2472]: time="2019-03-04T21:07:12.620968642Z" level=error msg="Upload failed, retrying: EOF"
Mar 04 21:08:17 minikube dockerd[2472]: time="2019-03-04T21:08:17.876688403Z" level=error msg="Upload failed, retrying: received unexpected HTTP status: 504 Connection Timed Out"
Mar 04 21:08:17 minikube dockerd[2472]: time="2019-03-04T21:08:17.889263304Z" level=error msg="Upload failed, retrying: EOF"
Mar 04 21:08:18 minikube dockerd[2472]: time="2019-03-04T21:08:18.383804954Z" level=error msg="Upload failed, retrying: EOF"
Mar 04 21:08:18 minikube dockerd[2472]: time="2019-03-04T21:08:18.417687481Z" level=error msg="Upload failed, retrying: EOF"
Mar 04 21:08:39 minikube dockerd[2472]: time="2019-03-04T21:08:39.347357157Z" level=error msg="Upload failed, retrying: EOF"
Mar 04 21:08:39 minikube dockerd[2472]: time="2019-03-04T21:08:39.401567534Z" level=error msg="Upload failed, retrying: EOF"
Mar 04 21:08:39 minikube dockerd[2472]: time="2019-03-04T21:08:39.409308761Z" level=error msg="Upload failed, retrying: EOF"
Mar 04 21:08:39 minikube dockerd[2472]: time="2019-03-04T21:08:39.517508938Z" level=error msg="Upload failed, retrying: received unexpected HTTP status: 502 Server Hangup"
Mar 04 21:08:54 minikube dockerd[2472]: time="2019-03-04T21:08:54.664567971Z" level=error msg="Upload failed, retrying: received unexpected HTTP status: 502 Connection refused"
Mar 04 21:08:54 minikube dockerd[2472]: time="2019-03-04T21:08:54.709293521Z" level=error msg="Upload failed, retrying: received unexpected HTTP status: 502 Connection refused"
Mar 04 21:08:54 minikube dockerd[2472]: time="2019-03-04T21:08:54.716961617Z" level=error msg="Upload failed, retrying: received unexpected HTTP status: 502 Connection refused"
Mar 04 21:08:54 minikube dockerd[2472]: time="2019-03-04T21:08:54.824814356Z" level=error msg="Upload failed, retrying: received unexpected HTTP status: 502 Connection refused"
Mar 04 21:09:21 minikube dockerd[2472]: time="2019-03-04T21:09:21.047543662Z" level=error msg="Not continuing with push after error: context canceled"
Mar 04 21:09:29 minikube dockerd[2472]: time="2019-03-04T21:09:29.050147019Z" level=info msg="Attempting next endpoint for push after error: Get https://10.39.83.174:5000/v2/: Tunnel or SSL Forbidden"
Mar 04 21:11:16 minikube dockerd[2472]: time="2019-03-04T21:11:16.828676871Z" level=error msg="Upload failed, retrying: EOF"
Mar 04 21:11:17 minikube dockerd[2472]: time="2019-03-04T21:11:17.263497930Z" level=error msg="Upload failed, retrying: EOF"
Mar 04 21:11:17 minikube dockerd[2472]: time="2019-03-04T21:11:17.593178543Z" level=error msg="Upload failed, retrying: EOF"
Mar 04 21:11:17 minikube dockerd[2472]: time="2019-03-04T21:11:17.760548676Z" level=error msg="Upload failed, retrying: received unexpected HTTP status: 504 Connection Timed Out"