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

Picks a random server when -r is omitted #34

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

Picks a random server when -r is omitted #34

ahmetb opened this issue Jul 17, 2017 · 4 comments

Comments

@ahmetb
Copy link

ahmetb commented Jul 17, 2017

I tried to run reg tags tor-browser in README however it's picking up a random server from my .docker/config.json every time:

➜  ~ reg -d tags tor-browser
2017/07/17 15:05:47 registry.ping url=https://asia.gcr.io/v2/
2017/07/17 15:05:47 registry.tags url=https://asia.gcr.io/v2/tor-browser/tags/list repository=tor-browser

➜  ~ reg -d tags tor-browser
2017/07/17 15:05:52 registry.ping url=https://gcr.io/v2/
2017/07/17 15:05:52 registry.tags url=https://gcr.io/v2/tor-browser/tags/list repository=tor-browser

➜  ~ reg -d tags tor-browser
2017/07/17 15:05:53 registry.ping url=https://bucket.gcr.io/v2/
2017/07/17 15:05:53 registry.tags url=https://bucket.gcr.io/v2/tor-browser/tags/list repository=tor-browser

➜  ~ reg -d tags tor-browser
2017/07/17 15:05:53 registry.ping url=https://us.gcr.io/v2/
2017/07/17 15:05:53 registry.tags url=https://us.gcr.io/v2/tor-browser/tags/list repository=tor-browser

FWIW I do not have a index.docker.io in my .dockercfg

@jessfraz
Copy link
Collaborator

jessfraz commented Jul 17, 2017 via email

@ahmetb
Copy link
Author

ahmetb commented Jul 17, 2017

I assumed tor-browser probably is resolved to index.docker.io/library/tor-browser. I now see that this was probably an image name in your private repo and you had only 1 server in .dockercfg. If this is the design you had in mind, we can close.

@jessfraz
Copy link
Collaborator

jessfraz commented Jul 17, 2017 via email

@jessfraz
Copy link
Collaborator

jessfraz commented Mar 6, 2018

this is a feature and now the client tells you whats its doing so closing https://github.com/jessfraz/reg/blob/master/repoutils/repoutils.go#L94

@jessfraz jessfraz closed this as completed Mar 6, 2018
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