roadmap icon indicating copy to clipboard operation
roadmap copied to clipboard

I would like Docker Desktop to distinguish between services and one-off task containers.

Open voroninp opened this issue 10 months ago • 3 comments

Tell us about your request When I define my docker compose file, some services are actually intended for perfoming one-off task and exiting. Docker Desktop UI shows this set of containers as not fully ok. Orange instead of Green: image

image

Which service(s) is this request for? Docker for Mac and Docker for Windows

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? I'd like to be able to define some filtering here. If one-off container exits without an issue, it should not affect the status of the compose project.

Are you currently working around the issue? No, I just have to live with it. =)

Additional context Add any other context or screenshots about the feature request here.

voroninp avatar Apr 29 '24 14:04 voroninp

IMHO this is a bug: one-off containers with label com.docker.compose.oneoff=True must not have impact on the compose application status As UX, it would also be nice those can be filtered-out from view, so user can focus on actual services, not stopped maintenance tasks

ndeloof avatar Apr 29 '24 14:04 ndeloof

Yet com.docker.compose.oneoff=True is set automatically when you do docker compsoe run, and I cannot set it in compose file, so even docker compose up knows which was a one-off taks.

voroninp avatar Apr 29 '24 15:04 voroninp

Same reported here: https://forums.docker.com/t/suggestion-application-health-status-icon-shouldnt-be-orange-if-containers-exited-with-status-0/115055

michaldo avatar Jun 19 '24 07:06 michaldo