podman start/stop/kill/restart commands can show an incorrect error message #12963
Labels
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
When running 'podman start/stop/kill/restart' and multiple containers match a given partial Container ID, the incorrect error message is displayed.
Steps to reproduce the issue:
Create multiple containers until there are at least 2 with the same starting character(s)
Run a podman start/stop/kill/restart command such as 'podman stop abc'
Observe incorrect error message
Describe the results you received:
'Error: invalid character '{' after top-level value'
Describe the results you expected:
An error more in line with the error from running the 'podman rm' command such as:
'Error: more than one result for container ID '
Additional information you deem important (e.g. issue happens only occasionally):
Just an incorrect error message. Does not appear to have any other negative impact.
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/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
MacOS
The text was updated successfully, but these errors were encountered: