Artifactory as default docker registry

Hello there,

We are using jFrog artifactory as a repository to pull/push all the artifacts in our organization.

Also, using docker for containers, due to security concerns we wanted to stop pulling the docker images directly from internet and we did setup the Docker registry in the jFrog Artifactory with the below steps given in the jFrog official documentation.

After that, I was able to pull/push the docker images using below commands:

docker login
docker pull //
docker push //

To pull any image, we have to specify both the Artifactory URL and the repository ( //).

But, our requirement would be without specifying the Artifactory URL and the repository(docker pull ) it should fetch the image directly from Artifactory (NOT from Docker.io hub).

I tried the below: Configure the Docker daemon

Edited the “/etc/docker/daemon.json” file and added the registry-mirrors key and value, to make the change persistent saved the file and reload Docker for the change to take effect.

{
“registry-mirrors”: [“Artifactory-URL”]
}

Then, executed the “docker pull ” command but, still it was pulling the image from the docker.io only not from Artifactory.

It would be appreciated if some one can help on this.

Regards,
GR

Hello All,

Can someone help me with the solution if we have any please?

Raja