saurg
saurg

Reputation: 347

Access private docker registry in browser

I have a private docker registry like myregistry.com:5000. I can push and pull images in client and it is working fine. But when I go to https://myregistry.com:5000/v1 in browser, I get error 404 page not found. Is there any way to access registry in browser?

Upvotes: 12

Views: 31107

Answers (3)

Pratik Gaurav
Pratik Gaurav

Reputation: 907

Pull the docker registry using:

docker run -p 5000:5000 registry:2

You can view the registries using the URL.

http://localhost:5000/v2/_catalog

enter image description here

Upvotes: 0

Elton Stoneman
Elton Stoneman

Reputation: 19184

The registry:2 image doesn't have a Web UI - it's not a local version of Docker Hub, it just has the core registry functionality and the REST API.

You can query the API directly:

> curl http://localhost:5000/v2/_catalog
{"repositories":[]}  

If you want a Web UI like the Hub, try Docker Trusted Registry.

Upvotes: 10

VonC
VonC

Reputation: 1327784

The url should be https://myregistry.com:5000/v2.

But regarding UI, you have several projects dedicated to browse a docker registry, like:

Upvotes: 11

Related Questions