compose
compose copied to clipboard
Show confirmation message on `docker-compose down`
Is your feature request related to a problem? Please describe.
I think a lot of us had situation in which you've called docker-compose down
instead of docker-compose stop
and removed all containers with data
Describe the solution you'd like Add a simple warning message
# docker-compose down
This will stop and remove all your containers. Are you sure [y/N]
Additional context
check on Ubuntu 20.04 with docker-compose version 1.29.2, build 5becea4c
maybe with support for "-y" flag to bypass the check
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi bot, please do not close that issue
This issue has been automatically marked as not stale anymore due to the recent activity.
This idea is actual for v2.6.0 of docker compose
. Still no any kind of warning (
I'd like to see this feature added as well.
docker-compose down
does not remove volumes, so if you use those, data won't get lost.
Introducing a confirmation to compose down
would be a significant compatibility break which will have impact on thousands users having scripts to manage compose applications, that's not an option we can adopt.