docker / compose

Define and run multi-container applications with Docker
https://docs.docker.com/compose/
Apache License 2.0
32.97k stars 5.1k forks source link

stop watch process when associated up process is stopped #11911

Closed glours closed 2 weeks ago

glours commented 2 weeks ago

What I did Share the doneCh channel of the up command to watch process so it could be stop when the up command is stopped by an external down command.

I moved the existing content of the func (s *composeService) Watch function to an internal watch function. This avoids changing the Watch API and eliminates the need to add the channel as a new parameter to the API.

Related issue https://docker.atlassian.net/browse/COMP-621

(not mandatory) A picture of a cute animal, if possible in relation to what you did image