Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
636 views
in Technique[技术] by (71.8m points)

docker - 无法将Docker构建的映像推送到SSL工件(Can't push docker built image to SSL artifactory)

Having trouble to push docker to internal Artifactory (6.11.1).

(无法将docker推送到内部Artifactory(6.11.1)。)

We have Artifactory installed on port 443 with Docker setting Repository Path.

(我们在Docker设置存储库路径的端口443上安装了Artifactory。)

If I login to using artifactory.local.int, pull an image tag it and push it back it works

(如果我登录到使用artifactory.local.int,则将其拉出图像标签并将其推回即可)

docker push artifactory.local/repo/image-name

but when I build an image my self or pull directly from docker hub and try to push docker will try to connect to port 80 and timeout because Artifactory isn't listening to this port.

(但是,当我建立映像时,我会自己或直接从Docker集线器中拉出并尝试推动docker将尝试连接到端口80并超时,因为Artifactory没有监听此端口。)

I also tried to tag an image with the port I get:

(我还尝试使用获得的端口标记图像:)

docker push artifactory.local:443/repo/image-name
error parsing HTTP 400 response body: invalid character 'B' looking for the beginning of value: "Bad Request
This combination of host and port requires TLS.
"

Am I missing some port or TLS configuration?

(我是否缺少某些端口或TLS配置?)

why am I able to push pulled images back to artifactory but new images aren't working?

(为什么我可以将拉动的图像推回原状,但新图像不起作用?)

  ask by Mark T translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Try:

(尝试:)

docker push https://artifactory.local/repo/image-name

You might need to login first:

(您可能需要先登录:)

docker login https://artifactory.local/repo/

In your example the docker client tries accessing Artifactory over port 443, but using http protocol instead of https protocol.

(在您的示例中,泊坞窗客户端尝试通过端口443访问Artifactory,但使用http协议而不是https协议。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...