Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] "reg ls" should accept hostname #31

Closed
ahmetb opened this issue Jul 10, 2017 · 5 comments
Closed

[Feature request] "reg ls" should accept hostname #31

ahmetb opened this issue Jul 10, 2017 · 5 comments

Comments

@ahmetb
Copy link

ahmetb commented Jul 10, 2017

reg ls command should accept a registry host e.g. reg ls gcr.io, otherwise it seems like it's randomly picking something in .docker/config.json

$ reg ls
Repositories for https://eu-mirror.gcr.io
^C
$ reg ls
Repositories for https://us-mirror.gcr.io
^C
$ reg ls
Repositories for https://l.gcr.io
^C
$ reg ls
Repositories for https://launcher.gcr.io
^C
$ reg ls
Repositories for https://asia.gcr.io
@jessfraz
Copy link
Collaborator

jessfraz commented Jul 10, 2017 via email

@ahmetb
Copy link
Author

ahmetb commented Jul 10, 2017

gcloud docker -a provides short lived creds, so the auth works but it appears like the _catalog API is not implemented currently:

$ reg -d -r https://gcr.io ls
2017/07/10 11:19:11 registry.ping url=https://gcr.io/v2/
2017/07/10 11:19:11 registry.catalog url=https://gcr.io/v2/_catalog
Repositories for https://gcr.io
REPO                TAGS

@halfer
Copy link

halfer commented Oct 24, 2017

@ahmetb: I get exactly the same on Codefresh (r.cfcr.io), although I have to pass a username and password manually to reg to get that empty output. May I ask if you got a resolution to this?

@ahmetb
Copy link
Author

ahmetb commented Oct 24, 2017

@halfer not really, due to the fact that gcr.io has not implemented the catalog API yet.

@halfer
Copy link

halfer commented Oct 24, 2017

Thanks @ahmetb - I just discovered the same on Stack Overflow! Like buses, two helpful answers come at the same time. 😺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants