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

Offer an alternative interface for specifying registy/repo/tag triple with docker-style syntax #5

Open
mishak87 opened this issue Apr 14, 2016 · 5 comments

Comments

@mishak87
Copy link

When listing tags of official repository results in error.

> docker-ls tags redis
ERROR: authorization rejected by registry

Listing it with library/ prefix works.

> docker-ls tags library/redis
requesting list . done
repository: library/redis
tags:
- "2"
...

Would it make sense to prepend library/ for images without <vendor>/?

@DirtyHairy
Copy link
Member

Hi @mishak87!

Afaik, the <vendor>/<name> scheme is just a convention, and there is nothing that keeps you for creating a repo that does not have a vendor prefix (I would have to test though). Anyway, I'd rather not add any magic for resolving repository names, but I am very much inclined to add a note concerning the official registry to the documentaton.

Cheers
-Christian

@mishak87
Copy link
Author

Yes v2 does not limit <name>.
This use-case is only when using public docker registry (aka Hub; which is default).
I think it would be more user friendly to prefix them in this case - especially for new docker users.

@DirtyHairy
Copy link
Member

Documented in 2621ced .

@mishak87
Copy link
Author

OT: Just a thought. Using docker/reference.WithName could simplify CLI input so registry does not have to be specified via argument. By simulating docker behaviour however it is messy would fit more into docker toolset (docker, docker-compose image names).

> docker-ls tags super.secret/vendor/project

@DirtyHairy
Copy link
Member

DirtyHairy commented Apr 18, 2016

Hi @mishak87 !

I'll think about it. While I think that the current interface is more clear and concise, it might be worthwhile to add a mode of operation where you specify the resource the docker way. Of course, I am also open to pull requests 😏

Cheers
-Christian

@DirtyHairy DirtyHairy changed the title anonymous docker-ls tags <official-repository> results in auth rejected Offer an alternative interface for specifying registy/repo/tag triple with docker-style syntax Jun 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants