compose icon indicating copy to clipboard operation
compose copied to clipboard

Show confirmation message on `docker-compose down`

Open ShockwaveNN opened this issue 3 years ago • 6 comments

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

ShockwaveNN avatar Jun 08 '21 09:06 ShockwaveNN

maybe with support for "-y" flag to bypass the check

Madpeterz avatar Jun 22 '21 10:06 Madpeterz

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.

stale[bot] avatar Jan 03 '22 20:01 stale[bot]

Hi bot, please do not close that issue

ShockwaveNN avatar Jan 03 '22 20:01 ShockwaveNN

This issue has been automatically marked as not stale anymore due to the recent activity.

stale[bot] avatar Jan 03 '22 20:01 stale[bot]

This idea is actual for v2.6.0 of docker compose. Still no any kind of warning (

ShockwaveNN avatar Jun 15 '22 11:06 ShockwaveNN

I'd like to see this feature added as well.

davemsh avatar Jul 31 '22 20:07 davemsh

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.

ndeloof avatar Dec 07 '22 20:12 ndeloof