-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
podman inspect --format issues #2159
Comments
We're not sure we have this issue all the times, we are still testing it. Just posted for the record for now. |
@vrothberg Could you check this out. |
@EmilienM any chance the image type (oci vs docker) could be a variable here? |
@baude same (docker) images as before. |
I can reproduce locally and will take a look |
Podman seems to not like |
The issue is that Podman doesn't fail with invalid keys as Docker does. The format mentioned in this issue doesn't seem to be correct, so nothing will be printed. Docker will print errors such as There might be more issues and I will continue digging tomorrow. |
Return errors when executing the --format templates. Otherwise, Podman will just silently ignore them and not print any output that could guide user into solving the issue. Fixes: containers#2159 Signed-off-by: Valentin Rothberg <[email protected]>
Docker does not fail as it seems to have |
Return errors when executing the --format templates. Otherwise, Podman will just silently ignore them and not print any output that could guide user into solving the issue. Fixes: containers#2159 Signed-off-by: Valentin Rothberg <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
The podman inspect command can report empty output while in docker we had something (see example bellow).
Steps to reproduce the issue:
Runs
docker inspect --format='{{range .Config.Env}} -e "{{.}}" {{end}} {{range .Mounts}} -v {{.Source}}:{{.Destination}}{{if .Mode}}:{{.Mode}}{{end}}{{end}} -ti {{.Config.Image}}' my_container
Describe the results you received:
Empty result.
Describe the results you expected:
With Docker, we had this output:
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info
:Additional environment details (AWS, VirtualBox, physical, etc.):
none
The text was updated successfully, but these errors were encountered: