1

I've searched the documentation for docker if this is possible and come up blank, but thought I'd pose the question here before shelving this. Is there a way to just tell Docker to use something other than dockerhub as a first port of call?

We're using Artifactory's virtual repository to merge local and remote repositories into one convenient output, but my main gripe is having to say docker pull docker-virtual-stage.artifactory.mycompany.com/centos instead of just docker pull centos.

Jfrogs method to get this endpoint seems over-complex \ not easily scaled up.

TL;DR: Is there a better way to not use dockerhub while remaining user friendly?

1 Answers1

1

How about setting the registry mirror, and then blocking blocking DNS to docker.io just to make sure it goes to your mirror?

#/etc/docker/daemon.json

{ "registry-mirrors": ["https://docker-virtual-stage.artifactory.mycompany.com"] }

As this guy suggested: https://stackoverflow.com/a/64158584/10664600

Adam Winter
  • 171
  • 1
  • 4