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] Infer registry host from image name argument #32

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

[Feature request] Infer registry host from image name argument #32

ahmetb opened this issue Jul 10, 2017 · 4 comments

Comments

@ahmetb
Copy link

ahmetb commented Jul 10, 2017

In issues #30, #31 I was mainly confused about the way I am supposed to specify private registry host to the reg CLI.

I assumed these would work:

reg ls r.j3ss.co
reg tags r.j3ss.co/chrome

however it looks like the actual syntax is:

reg -r https://r.j3ss.co ls
reg -r https://r.j3ss.co tags chrome

To me I needed to provide full HTTPS url:

reg -d -r https://gcr.io tags ahmetb/imagename

This seemed a bit weird to me:

  1. Registry host is almost always part of image name (i.e. when you specify it while running it)
  2. Docs say reg -r r.j3ss.co, but in my case all ~/.docker/config.json starts with https://. For example docker login to docker hub creates https://index.docker.io/v1/ which I have no idea how I can use with reg tool.

Overall, it seems like inference of the registry host from image (if no host, default to index.docker.io) and being more forgiving about URLs that appear with/without https:// prefix can improve the user experience.

@jessfraz
Copy link
Collaborator

jessfraz commented Jul 10, 2017 via email

@jessfraz
Copy link
Collaborator

@ahmetb if you wanna try it now it should work

@ahmetb
Copy link
Author

ahmetb commented Jul 17, 2017

worked, thanks

@jessfraz
Copy link
Collaborator

jessfraz commented Jul 17, 2017 via email

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

2 participants