-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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-remote: container killed by 'rm -f', exit code is 0 #7117
Comments
We need to adapt the fix for #3795 (reading events) for remote - right now it's local Podman only |
A friendly reminder that this issue had no activity for 30 days. |
I test this on 2.0.5, It still exists |
https://github.com/containers/podman/blob/master/pkg/domain/infra/tunnel/containers.go#L481 |
I opened #7574 to fix it. This required quite some massaging but it's passing on my end. |
After attaching to a container, we wait for the container to finish and return its exit code. Waiting for the container may not always succeed, for instance, when the container has been force removed by another process. In such case, we have to look at the *last* container-exit event. Also refactor the `ContainerRun` method a bit to return early on errors and de-spaghetti the code. Enable the remote-disabled system test. Fixes: containers#7117 Signed-off-by: Valentin Rothberg <[email protected]>
In window 1:
$ ./bin/podman system service --timeout=0
In window 2:
$ ./bin/podman-remote run --name foo alpine sleep 30
In window 3:
Go back to window 2. Container has exited, but rc=0 (expected: 137).
podman stop foo
works as expected - kills the container, and therun
process (window 2) exits 137.Related: #3795
master @ 288ebec, root & rootless
The text was updated successfully, but these errors were encountered: