Docker incompatibility: ContainerTop ps_args is not split on whitespace #12452
Labels
In Progress
This issue is actively being worked by the assignee, please do not work on this at this time.
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Podman and Docker differ in the interpretation of
ps_args
for the ContainerTop call, and in the behavior of the "docker top" arguments.In particular, Podman CLI replaces all spaces in
ps_args
with,
, breaking some calls.Podman legacy API passes
ps_args
as a single argument. Docker API splits on spaces.Steps to reproduce the issue:
ps ax,-o,pid,args
gets executed instead.``
ps_args=ax -o pid,args
.ps 'ax -o pid,args'
gets executed (all arguments passed as one).Describe the results you received:
Note that both calls are invalid for
psmisc
while Busybox silently ignores them.Describe the results you expected:
Same behavior as in Docker: get a list of pids and commands.
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Not relevant to the issue.
Workaround:
Using
-eopid,args
as a workaround for now.The text was updated successfully, but these errors were encountered: