-
Notifications
You must be signed in to change notification settings - Fork 11
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
Bug: unable to use podman as the inspect driver #234
Comments
So I actually didn't realize I could inspect an image using podman directly. Instead I'm running a skopeo container to get the information (should probably change this to use the podman native way). Right now when I run skopeo to inspect that image I get:
|
Ah, this is a private registry/image. How does this work for buildx? It does work when logged in to github:
|
This must be because the skopeo container does not have credentials loaded in. This needs to be fixed. I'll work on moving the podman and docker inspect driver to use the proper native inspection. In the meantime, you should be able to just remove the |
I didn't realize that the native skopeo binary was the default inspection driver, I had assumed it was docker. |
So some local testing with podman and docker, it looks like the only way to inspect the images will be to pull them before they can be inspected. I'll still set up the docker/podman inspect driver to use the native methods, however for faster build times the skopeo inspect driver will end up being the recommended way. |
Setting the inspection driver to |
The skopeo driver will be the default driver if you don't specify it explicitly so long as the binary is present on the machine, so you can remove that if you want. I should create some documentation on the drivers and how they are selected to help clear up any confusion. |
That would be helpful, I looked at https://github.com/blue-build/cli/blob/566380a82a966b9215d50ec3cf8f860e8e0500b6/process/drivers/types.rs when I was configuring but for whatever reason I only looked at build and run then made an assumption about inspection. I got there via code search and I didn't read the whole file so it's my bad. I'm happy we caught the discrepancy and agree that it's non-obvious that all three are just using |
The CLI should be available on your image. You can run |
I get the following error when using podman as the inspect driver (https://github.com/prydom/my-ostree-build/actions/runs/11168292270/job/31046362688#step:4:16533):
Running
podman image inspect docker://ghcr.io/prydom/fedora-kinoite-laptop:br-switch-to-podman-42
I do get this error, so it's likely we need to removedocker://
from the argument's format string if we want to do a lookup. See https://github.com/blue-build/cli/blob/main/process/drivers/podman_driver.rs#L189.The text was updated successfully, but these errors were encountered: