Skip to content
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

[NEW FEATURE] restart should use a different colour #4

Open
mrjackwills opened this issue Apr 27, 2022 · 7 comments
Open

[NEW FEATURE] restart should use a different colour #4

mrjackwills opened this issue Apr 27, 2022 · 7 comments

Comments

@mrjackwills
Copy link
Owner

Is your feature request related to a problem? Please describe.
When restarting a container, the columns are still coloured as green

Describe the solution you'd like
A container in a restarting state should use a none green (as current), nor red/yellow color

@omnisci3nce
Copy link

omnisci3nce commented Jun 25, 2022

Would you be open to someone (noob) contributing this?
I'm new to Rust so I'm looking for some small issues to work on to get my feet wet and I just found your tool after searching for Docker TUIs and really liking it so far.

@mrjackwills
Copy link
Owner Author

Yeah absolutely happily accept any PRs, don't worry about being a noob, I still am one

@omnisci3nce
Copy link

Fantastic. I'll have a crack at it this weekend.

@omnisci3nce
Copy link

I will be setting up a server + bunch of Docker stuff at work in the next few weeks so this TUI will come in handy. Until now I've just been using the commands as-is.

@omnisci3nce
Copy link

@mrjackwills Do you have a reliable way of getting into the Restarting state in the TUI? When I use 'restart' on my current docker containers as well as the three you have listed in the README, I do not see the state change to Restarting but rather I see

"running" .. "loading spinner starts" ......................... "see SIGTERM in logs" .. UI stays "running" but maybe flashes a different state or text that I couldn't see

Or is implementing something which turns the UI into "Restarting..." until it goes down then comes back up part of the scope of this issue?

@mrjackwills
Copy link
Owner Author

I think you could try two things, not completely tested them though

  1. Set the docker refresh rate, with the -d flag, to something shorter, like 50ms

  2. Purposefully create a container that has errors in it, for example a redis container in which you supply a conf file, in which you have set an incorrect setting, meaning the container will never correctly start. I'm not sure which setting to change, all I know is I have done this accidentally in the past when trying to create a service.

@omnisci3nce
Copy link

omnisci3nce commented Jul 5, 2022

Thanks, I'll give that a go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants