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

question: How to inspect local podman image? #1924

Closed
abitrolly opened this issue Apr 19, 2024 · 1 comment
Closed

question: How to inspect local podman image? #1924

abitrolly opened this issue Apr 19, 2024 · 1 comment
Labels
question Further information is requested

Comments

@abitrolly
Copy link
Contributor

Here is local container image in podman.

$ podman images | grep bb2
localhost/bb2-make-single                                   latest               aca685d13931  5 hours ago    91 kB

But crane doesn't see it.

$ crane export localhost/bb2-make-single 
Error: pulling localhost/bb2-make-single: GET https://index.docker.io/v2/localhost/bb2-make-single/manifests/latest: UNAUTHORIZED: authentication required; [map[Action:pull Class: Name:localhost/bb2-make-single Type:repository]]
$ crane export bb2-make-single 
Error: pulling bb2-make-single: GET https://index.docker.io/v2/library/bb2-make-single/manifests/latest: UNAUTHORIZED: authentication required; [map[Action:pull Class: Name:library/bb2-make-single Type:repository]]
@abitrolly abitrolly added the question Further information is requested label Apr 19, 2024
abitrolly added a commit to abitrolly/go-containerregistry that referenced this issue Apr 19, 2024
@abitrolly
Copy link
Contributor Author

abitrolly commented Apr 19, 2024

Found the answer in #1925.

podman image save bb2-make-single - | crane export - - | tar -tvf - | less
drwxr-xr-x 0/0               0 2024-04-19 07:43 home
drwxr-xr-x 0/0               0 2024-04-19 07:43 home/static
-rw-r--r-- 0/0               0 2024-04-19 03:44 home/static/httpd.conf
-rwxr-xr-x 0/0           79392 2024-04-19 07:42 busybox_HTTPD
drwxr-xr-x 0/0               0 2024-04-19 07:14 etc
-rw-r--r-- 0/0            1227 2024-04-19 07:14 etc/passwd

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

No branches or pull requests

1 participant