-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
filters not working in podman-2.2.1
to podman-3.2.0_rc1
#8785
Comments
As a work-around, the following works:
|
@jwhonce PTAL |
It works for me with 2.2.1
|
The |
Can you share a reproducer? It is working with all my images. |
Yes, I do! If you build this Dockerfile https://raw.githubusercontent.com/srcshelton/docker-gentoo-build/master/gentoo-base/Dockerfile.env, which exists solely of Prior releases of |
I can reproduce with your file. git bisect says 3cca814 @jwhonce PTAL A simpler reproducer would be using this Containerfile:
Notice that this is a tab character before the t. The problem is caused by the use of the tabwriter: podman/cmd/podman/inspect/inspect.go Lines 261 to 262 in 142b4ac
|
A friendly reminder that this issue had no activity for 30 days. |
@jwhonce ptal |
A little late for podman 2.1.1 with Podman 3.0 about to release can we just close this issue? |
... it's not fixed in RC2 either :( |
@jwhonce assures us that it will be ready for 3.0 final - we apparently need a revendor of containers/common with his patches, and then a fresh patch to Podman on top of that. |
Looks like this is working in the main branch now. podman inspect --format '{{ .Config.Env }}' -l |
This is not fixed. @rhatdan You need to have a tab character in the env var. Use the Containerfile from this comment #8785 (comment) |
Ok, I looked at the first commands and tried them locally and had no issue. I did not read down the the reproducer. |
Still an issue in |
podman inspect
filters not working in podman-2.2.1
?podman inspect
filters not working in podman-2.2.1
to podman-3.2.0_rc1
@jwhonce PTAL |
@vrothberg Looked, use of []interface{} in the inspect code makes a quick fix difficult. |
A friendly reminder that this issue had no activity for 30 days. |
@Luap99 do you have time to tackle this? |
A friendly reminder that this issue had no activity for 30 days. |
@jwhonce @Luap99 @srcshelton Is this still an issue? |
Still broken with |
A friendly reminder that this issue had no activity for 30 days. |
@flouthoc PTAL |
@srcshelton I think problem is we are never flushing the writer, this should fix things for you Please try with #11499 . I will backport once you confirm. |
@Luap99 This should also fix the reproducer (#8785 (comment)) which you provided. Could you please give this commit a shot. |
Just to say, this all appears fixed with |
@srcshelton 👍 thanks for confirming. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Running
podman inspect -f '{{ <filter> }}' <image>
with certain filter strings no longer works withpodman-2.2.1
.Describe the results you received:
The command:
... (which comes from the
podman
help output) works as expected. However:... returns no output.
... however, still does (demonstrating that the data is there)
Describe the results you expected:
As previous releases,
podman inspect -f '{{ .Config.Env }}' <image>
would display the environment variables embedded within the specified image.Output of
podman version
:Output of
podman info --debug
:Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
The text was updated successfully, but these errors were encountered: