Interupting "podman run" while the image is pulled, leads to the error "Error: checking platform of image ... inspecting image: layer not known" the next time "podman run" is run #15853
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
Interupting
podman run --rm -ti docker.io/library/nginx /bin/true
with SIGINT while the image is being pulled, leads to the errorthe next time
podman run --rm -ti docker.io/library/nginx /bin/true
is run.I've seen the error happening on the following systems:
For Podman 4.2.0 (fedora-coreos-37.20220910.1.0-qemu.aarch64.qcow2) I once got another error:
Steps to reproduce the issue:
and create a new user.
/usr/bin/timeout -s INT 10s podman --log-level=debug run --rm -ti docker.io/library/nginx /bin/true
(the 10 second timeout was chosen so that the SIGINT is sent to Podman while Podman is pulling the image)podman --log-level=debug run --rm -ti docker.io/library/nginx /bin/true
.echo $?
podman images
Describe the results you received:
At step 4, i.e., the second time
podman run ...
is run, I see the error messageThe exit value is 125.
Describe the results you expected:
I expected not seeing the error message and I expected the exit value to be 0.
(Although the first
podman run ...
command was interupted, I thought the secondpodman run ...
command would be able to run successfully)Output of
podman version
:Output of
podman info
: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
Although the bug reproducer above was done with Podman
4.2.1, here are some tests I did with Podman 4.2.0:
Tests on fedora-coreos-37.20220910.1.0-qemu.aarch64.qcow2
This Fedora CoreOS VM has Podman 4.2.0.
Test 1 (fedora-coreos-37.20220910.1.0-qemu.aarch64.qcow2)
Here I got a new error message:
See the details:
(SIGINT was sent by pressing Ctrl-C)
Test 2 (fedora-coreos-37.20220910.1.0-qemu.aarch64.qcow2)
This time I got the same error as with Fedora CoreOS rawhide:
See the details:
The text was updated successfully, but these errors were encountered: