Exit statuses such as docker run
are not inherited from the container
#16056
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.
macos
MacOS (OSX) related
remote
Problem is in podman-remote
stale-issue
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When using
docker run
ordocker exec
commands with podman-machine, it appears that the exit status of the container is not inherited by the client.docker-compose
is similar.I could confirm that
podman run
orpodman exec
inherits the exit status from the container.Running the same command on the Docker Desktop environment will inherit the exit status of the container to the client.
Steps to reproduce the issue:
podman machine init
podman machine start
docker run --rm alpine false ; echo $?
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
The podman command gives the expected results.
Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
orbrew info 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 Monterey 12.4
Thank you.
The text was updated successfully, but these errors were encountered: