Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Push\Pull docker images to Artifactory

I'm trying to push docker images to artifactory as part of a CI jenkins job. I have an Artifactory installed with url art:8080 I installed Docker on Win2016 and built my dockerfile.

Now I stuck in how to push the output image of the dockerfile. I tried:

<!-- language: lang-none -->

docker tag microsoft/windowsservercore art:8080/imageID:latest
docker push art:8080/docker-local:latest

but I get an error stating:

Get https://art:8080/v2/: dial tcp: lookup artifactory: getaddrinfow: No such host is known.

Where is the https getting from? How do I push to the correct local docker repo in my artifactory?

like image 315
chen Avatar asked Apr 26 '26 11:04

chen


1 Answers

Docker requires you to use https. What I do (I use Nexus not Artifactory) is setup a reverse proxy using nginx. Here is the doc for that - https://www.jfrog.com/confluence/display/RTF/Configuring+a+Reverse+Proxy

Alternatively, you can set Docker to not require https (though not recommended)

like image 156
PolarisUser Avatar answered Apr 28 '26 02:04

PolarisUser



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!