You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like the CLI is acting as instructed. I know some linux/unix commands allow placement of - flags at any point on the command line but here I thought order mattered. wdyt @Luap99
Almost all of our commands allow arbitrary placement of flags. There are special cases like podman create/run where all arguments after image as considered arguments for the container not the podman command. However for podman logs that simply seems unnecessary, you cannot even have container names starting with - anyway so I would say this should just be allowed.
Do not use the interspersed option for logs, it is not needed and just
restricts valid use cases.
Fixescontainers#25653
Signed-off-by: Paul Holzinger <[email protected]>
Do not use the interspersed option for logs, it is not needed and just
restricts valid use cases.
Fixescontainers#25653
Signed-off-by: Paul Holzinger <[email protected]>
Issue Description
I encountered an issue with the
podman container logs
command where the flags are misinterpreted as container-names.Steps to reproduce the issue
Steps to reproduce the issue
podman container logs <container_name> -f
Describe the results you received
The below cmd works fine.
However, using the
-f
flag after the container name results in the following error:Similarly, using
--follow=true
produces the error:Describe the results you expected
Expected the above command to work fine
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional information
I am happy to help fix this issue. Thanks
The text was updated successfully, but these errors were encountered: