docker / roadmap

Welcome to the Public Roadmap for All Things Docker! We welcome your ideas.
https://github.com/orgs/docker/projects/51
Creative Commons Zero v1.0 Universal
1.74k stars 261 forks source link

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

Open voroninp opened 6 months ago

voroninp commented 6 months ago

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.

ndeloof commented 6 months ago

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

voroninp commented 6 months ago

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.

michaldo commented 5 months ago

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