docker / roadmap

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

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

Open voroninp opened 2 weeks ago

voroninp commented 2 weeks 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 2 weeks 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 2 weeks 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.