-
Notifications
You must be signed in to change notification settings - Fork 14
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
Do not remove graph when container exits #41
Comments
That's an interesting use case. Do you mind providing a bit more detail? |
Sure, what part should I elaborate on? For my particular case I was wanting to see what the memory usage was at the point that the process was killed and the container exited. What I ended up doing was taking a screen recording and then extracting the frame from the video at the point the container was killed. It would have been better if I didn't have to resort to taking a video. Even better would have been if I could have then gone back and put the cursor over the peak in the graph to see what the value was at that point. |
That sounds like an elaborate workaround. Sure, I can make containers stay after being removed, and I will mark them as stopped/removed. Regarding the interactive graph, I think that may be a limitation of the Javascript library I chose for the task, but that too is changeable. Thank you for the great suggestion. I will incorporate it into the project. |
Addressed in #45. @steinybot I have made changes to the whole application UI. All containers are shown, regardless of whether they are running or stopped (removed containers are obviously not shown and are removed from the UI). Each container row is now collapsible, so container data can be shown on a per container basis. Do you mind checking out the new implementation and updating this issue? |
Looks great so far! I like the blue for the graph. I don't know if it is related to these changes but I just encountered an exception:
I'll repeat what I just did and see if it happens again. |
Ok so it does seem to be reproducible. Here is what I did:
|
Somehow it seems that the id of the container is not being reported properly, and this is a parsing exception. Does the monitor work after this or does it stop completely? |
Opened a new issue. Closing the current one because the original issue has been resolved. |
@vasilmkd So actually I think this one should be reopened. The container is still being removed when it exits. |
Actually I will keep this one closed. I will comment on the other issue. |
This was because I was running the container with the |
I didn't really choose this behavior. As soon as you remove a container, Docker no longer shows any information about it, when running the set of commands that I'm using for this application. With that being said, the server part of this application is a standard HTTP server which is stateless by default (and I'd like to keep it that way), so any state is currently delegated to the client in Javascript. Maybe we can keep around the removed containers for the duration of the session, but they will be gone after a refresh of the page, and they will not receive any updates, since there aren't any. If you really like, I could look into implementing this behavior (not removing removed containers from the UI) but I'd really like the application to show the actual state of Docker containers. Let me know your thoughts. |
That was my naive understanding of how it was going to work. That is already true for how it works with a running/stopped container, if you refresh you loose the historical data, so I don't think it would be surprising if a removed container disappeared. If it is much work I don't think it is necessary to change the current behaviour and you can close this again. I agree that showing the state of the container is now more important. There are the states from |
Thanks for the app, it is really handy.
I was wondering if there is a way to prevent the graph from being removed when the container exits? I am using it to monitor a container which is getting killed by the OOM killer and it would be nice to keep the graph around after it has been killed.
The text was updated successfully, but these errors were encountered: