You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Request] - Implement -t | --timeout option for `docker-compose down #3370
There is the -t | --timeout option that can be passed to docker-compose stop, it would be nice to add this option to docker-compose down.
As down destroys a containers, it means we won't be using it again, so we should be allowed "not to care if it exits correctly. Alternatively it could be a -k | --kill flag so that instead of "stopping and removing container" it would "kill and remove container".
I understand that it should not be the default behavior because some linked containers can still prefer if the present container is stopped correctly, but there are such cases where it could speed things up.
For instance, I do a lot of debugging on an application that unfortunately doesn't handle SIGTERM signal, and it is a pain to wait 10 seconds after running down, so I usually kill it first, then down it.
It's just a suggestion, what do you think?
Reacted by Jan, koddo, Piotr Zajączkowski, Andrew Rabert, Mårten Palm, Jeremy Wu, Neo, dforrest88, Iceflower, vvoody and 2 more
Activity
pataquets commentedon May 3, 2016
+1 to
--timeoutoption, with support for matching Docker Engine's -1 value to wait undefinitely until container stops.tarantegui commentedon May 4, 2016
+1 it would be interesting add the
downoption for specific services, likedocker-compose stop apachedforrest88 commentedon Jun 9, 2017
+1 for this. It would be good to be able to gracefully shut down a container via compose, rather than killing it automatically after 10 seconds.
ilinum commentedon Nov 6, 2017
I would be interested in tackling this issue :)
Is this something that would be useful?
implement --timeout flag for docker-compose down
implement --timeout flag for docker-compose down
implement --timeout flag for docker-compose down
implement --timeout flag for docker-compose down