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

Empty output from "reg tags" in GCR #30

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

Empty output from "reg tags" in GCR #30

ahmetb opened this issue Jul 10, 2017 · 2 comments

Comments

@ahmetb
Copy link

ahmetb commented Jul 10, 2017

I am using GCR.io and authenticated to the engine with gcloud docker -a (provides short-lived tokens).

I'm

➜  gcloud container images list
NAME
gcr.io/ahmetb-starter/coffeedirectory
gcr.io/ahmetb-starter/foo
gcr.io/ahmetb-starter/userdirectory
gcr.io/ahmetb-starter/web
➜  reg tags gcr.io/ahmetb-starter/web

➜  reg tags gcr.io/ahmetb-starter/non-existing . image
FATA[0000] invalid character '<' looking for beginning of value

➜  reg tags gcr.io/ahmetb-starter/adsfadsfadsf

➜  

I'm getting empty output for images that actually has tags. What am I doing wrong? reg tags --help doesn't reveal much info.

@ahmetb
Copy link
Author

ahmetb commented Jul 10, 2017

I suppose this has something to do with the way GCR works. reg -r https://gcr.io ls took forever as well. Probably has something to do with GCR API.

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

@ahmetb
Copy link
Author

ahmetb commented Jul 10, 2017

Actually figured out:

$ reg -d -r https://gcr.io tags ahmetb-starter/coffeedirectory

It would be better if hostname was actually parsed from image name IMO instead of -r.

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

1 participant