-
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
Real container state lost across reboot #1703
Comments
@cjeanner thanks for the problem report. Do you by chance have a Dockerfile or a recommended way to create a container that fails to start? |
Hello @TomasTomecek Cheers, |
This should be pretty easy now that we have a dedicated Exited state.
Instead of unconditionally setting the Created state, we set it only if we
are not in Exited state. Stopped also probably transitions to Exited on
refresh.
…On Tue, Oct 23, 2018, 07:55 Cédric Jeanneret ***@***.***> wrote:
Hello @TomasTomecek <https://github.com/TomasTomecek>
I guess a command as "exit 1" in the Dockerfile should do the trick. I can
confirm that in about an hour if you want - I have some running tests I
can't really stop right now, and a bit out of resources :/
Cheers,
C.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1703 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHYHCK2PAiolQZXEKdDqrWC_jdJn3Mc-ks5unwO0gaJpZM4X1GkX>
.
|
@mheon Has this been fixed? |
Nope. I'll take it, should be a quick fix. |
Yes. Good call. |
Is this a BUG REPORT or FEATURE REQUEST?:
[//]: # Uncomment only one, leave it on its own line:
kind bug
[//]: # kind feature
Description
Steps to reproduce the issue:
Run a container that fails starting properly. It should be listed with an "Exited (non-0)" in
podman ps --all
Reboot the computer/server
Describe the results you received:
After the reboot,
podman ps --all
shows the container as "Created"Describe the results you expected:
It should keep the "Exited (error-code)" instead, in order to stay consistent.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info
:Additional environment details (AWS, VirtualBox, physical, etc.):
Running on a libvirt domain - although this shouldn't affect the state reported by podman.
The text was updated successfully, but these errors were encountered: