How to setup Docker repository in Artifactory and push/pull images?

Spread the Knowledge

Step 1 – Setup Artifactory using Docker way

Follow this instructions…

Setup Artifactory pro 6.1.0 using Docker containtainer

Step 2 – Create a docker repo
Create a repo & “Docker Access Method” == Repository Path && Save it

Example of docker push or pull and login commands:
docker pull / push 13.233.18.29:8081/<REPOSITORY_KEY>/<IMAGE>:<TAG>
docker login -u <USER_NAME> -p <USER_PASSWORD> 13.233.18.29:8081

Step 3 – Convert https to https using

Convert https to https using https://www.devopsschool.com/blog/setup-docker-service-to-use-insecurehttp-registry-instead-of-https/
i.e
{
“insecure-registries” : [“13.233.18.29:8081”]
}

Step 4 – Login to Artifactory registory
$ docker login -u admin -p password 13.233.18.29:8081

Step 5 – Push the docker image to Artifactory registory
$ docker tag imagename 13.233.18.29:8081/<REPOSITORY_KEY>/<IMAGE>:<TAG>
$ docker push 13.233.18.29:8081/<REPOSITORY_KEY>/<IMAGE>:<TAG>

i.e docker pull 13.233.18.29:8081/repo-name/image-name