无法将Docker镜像上传到Artifactory - 由同行

时间:2017-09-01 08:11:05

标签: docker artifactory

我试图将Docker镜像推送到同一本地网络中的Artifactory但是它在一段时间后停止并出现该错误信息:

  

root @ CI:/ home / iggy #docker push 10.87.65.7:5000/tibco推送指的是   到存储库[10.87.65.7:5000/tibco] da6d16ef19d5:推送[=>
  ] 551.4 kB / 1.519 GB写tcp 10.87.65.33:54890->10.152.254.201:8080:   写:连接由同行重置

我可以使用" docker login登录10.87.65.7:5000"使用Artifactory的管理员凭据。我已添加" 10.87.65.7:5000"不安全的注册局。我无法在nginx中看到任何错误日志,但是我在Artifactory中看到了一些错误日志:

  

2017-08-31 09:24:03,076 [ACCEPTED CONFIGURATION_CHANGE] for   管理员/ 10.87.65.9。 2017-08-31 09:24:19,947 [接受   CONFIGURATION_CHANGE]为admin / 10.87.65.9。 2017-08-31 09:24:24,404   [拒绝登录]为NA / 10.87.65.7。 2017-08-31 09:27:06,160 [拒绝   登录]为NA / 10.87.65.7。

更多信息:

  

root @ CI:/ home / iggy#docker -v Docker 1.12.6版,build 78d1802   Artifactory - jfrog-artifactory-pro-5.4.6

10.87.65.7 - Artifactory VM, 10.87.65.33 - Docker VM

任何线索为什么会发生这种情况?

PS。 journalctl -u docker.service from 10.87.65.33:

  

wrz 01 10:25:54 CI dockerd [10907]:   时间=#&34; 2017-09-01T10:25:54.102482175 + 02:00" level = error msg =" Handler   对于GET /v1.24/containers/c9d96afbfa84/json返回错误:没有这样的   容器:c9d96afbfa84" wrz 01 10:27:54 CI dockerd [10907]:   时间=#&34; 2017-09-01T10:27:54.827236788 + 02:00" level = error msg ="正在尝试   推送错误的下一个端点:获取https://10.87.65.7:5000/v2/:   隧道或SSL禁止" wrz 01 10:28:21 CI dockerd [10907]:   时间=#&34; 2017-09-01T10:28:21.191783057 + 02:00" level = error msg ="上传   失败,重试:写tcp 10.87.65.33:55014->10.152.254.201:8080:   写:连接由同行重置" wrz 01 10:28:21 CI dockerd [10907]:   时间=#&34; 2017-09-01T10:28:21.250673504 + 02:00" level = error msg ="上传   失败,重试:写tcp 10.87.65.33:55016->10.152.254.201:8080:   写:连接由同行重置" wrz 01 10:28:21 CI dockerd [10907]:   时间=#&34; 2017-09-01T10:28:21.301091802 + 02:00" level = error msg ="上传   失败,重试:读取tcp 10.87.65.33:55022->10.152.254.201:8080:   读取:通过对等方重置连接" wrz 01 10:28:21 CI dockerd [10907]:   时间=#&34; 2017-09-01T10:28:21.321781695 + 02:00" level = error msg ="上传   失败,重试:写tcp 10.87.65.33:55018->10.152.254.201:8080:   写:连接由同行重置" wrz 01 10:28:51 CI dockerd [10907]:   时间=#&34; 2017-09-01T10:28:51.250855040 + 02:00" level = error msg ="上传   失败,重试:读取tcp 10.87.65.33:55032->10.152.254.201:8080:   读取:通过对等方重置连接" wrz 01 10:28:51 CI dockerd [10907]:   时间=#&34; 2017-09-01T10:28:51.314110199 + 02:00" level = error msg ="上传   失败,重试:写tcp 10.87.65.33:55034->10.152.254.201:8080:   写:连接由同行重置" wrz 01 10:28:51 CI dockerd [10907]:   时间=#&34; 2017-09-01T10:28:51.336208120 + 02:00" level = error msg ="上传   失败,重试:写tcp 10.87.65.33:55036->10.152.254.201:8080:   写:连接由同行重置" wrz 01 10:28:51 CI dockerd [10907]:   时间=#&34; 2017-09-01T10:28:51.357638907 + 02:00" level = error msg ="上传   失败,重试:写tcp 10.87.65.33:55038->10.152.254.201:8080:   写:连接由同行重置" wrz 01 10:28:57 CI dockerd [10907]:   时间=#&34; 2017-09-01T10:28:57.837608810 + 02:00" level = error msg ="上传   失败,重试:收到意外的HTTP状态:502 Server Hangup"   wrz 01 10:29:26 CI dockerd [10907]:   时间=#&34; 2017-09-01T10:29:26.160819971 + 02:00" level = error msg ="上传   失败,重试:读取tcp 10.87.65.33:55048->10.152.254.201:8080:   读取:通过对等方重置连接" wrz 01 10:29:26 CI dockerd [10907]:   时间=#&34; 2017-09-01T10:29:26.247001138 + 02:00" level = error msg ="上传   失败,重试:写tcp 10.87.65.33:55050->10.152.254.201:8080:   写:连接由同行重置" wrz 01 10:29:26 CI dockerd [10907]:   时间=#&34; 2017-09-01T10:29:26.345532227 + 02:00" level = error msg ="上传   失败,重试:写tcp 10.87.65.33:55056->10.152.254.201:8080:   写:连接由同行重置" wrz 01 10:29:26 CI dockerd [10907]:   时间=#&34; 2017-09-01T10:29:26.532987146 + 02:00" level = error msg ="上传   失败,重试:写tcp 10.87.65.33:55052->10.152.254.201:8080:   写:连接由同行重置" wrz 01 10:30:04 CI dockerd [10907]:   时间=#&34; 2017-09-01T10:30:04.385713563 + 02:00" level = error msg ="上传   失败,重试:收到意外的HTTP状态:502 Server Hangup"   wrz 01 10:30:06 CI dockerd [10907]:   时间=#&34; 2017-09-01T10:30:06.191469609 + 02:00" level = error msg ="上传   失败,重试:读取tcp 10.87.65.33:55070->10.152.254.201:8080:   读取:通过对等方重置连接" wrz 01 10:30:06 CI dockerd [10907]:   时间=#&34; 2017-09-01T10:30:06.215756304 + 02:00" level = error msg ="上传   失败,重试:写tcp 10.87.65.33:55072->10.152.254.201:8080:   写:连接由同行重置" wrz 01 10:30:06 CI dockerd [10907]:   时间=#&34; 2017-09-01T10:30:06.352755861 + 02:00" level = error msg ="上传   失败,重试:写tcp 10.87.65.33:55074->10.152.254.201:8080:   写:连接由同行重置" wrz 01 10:30:06 CI dockerd [10907]:   时间=#&34; 2017-09-01T10:30:06.599892629 + 02:00" level = error msg ="上传   失败,重试:写tcp 10.87.65.33:55076->10.152.254.201:8080:   写:连接由同行重置" wrz 01 10:30:51 CI dockerd [10907]:   时间=#&34; 2017-09-01T10:30:51.246752156 + 02:00" level = error msg ="上传   失败:写tcp 10.87.65.33:55092->10.152.254.201:8080:写:   连接由同行重置" wrz 01 10:30:51 CI dockerd [10907]:   时间=#&34; 2017-09-01T10:30:51.246859375 + 02:00" level = error msg ="正在尝试   推送错误后的下一个端点:写入tcp   10.87.65.33:55092->10.152.254.201:8080:写:连接由同行重置"

1 个答案:

答案 0 :(得分:1)

您是否有企业防火墙或需要使用HTTP代理的东西?看起来HTTP_PROXY可能会设置在此设置的某个位置(在Docker端),因为正在尝试写入 10.152.254.201:8080 ,这不是您的Artifactory地址。这看起来像是在8080上运行的HTTP代理。鉴于您的两台机器似乎在同一个子网上,我假设您不希望HTTP代理集为它们之间的流量。使用Artifactory的初始身份验证也因此失败:

time="2017-09-01T10:27:54.827236788+02:00" level=error msg="Attempting next endpoint for push after error: Get https://10.87.65.7:5000/v2/: Tunnel or SSL Forbidden"

如果您搜索隧道或SSL禁止消息,您会发现很多人都在谈论HTTP代理/防火墙问题。