We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1e66f7 commit 4570f6fCopy full SHA for 4570f6f
confirm_remove.sh
@@ -2,7 +2,12 @@
2
echo "Warning: This will remove all containers and volumes, including persistent data. Do you want to continue? [Y/N]"
3
read ans
4
if [ "$ans" == "Y" ] || [ "$ans" == "y" ]; then
5
- docker-compose down -v
+ command docker-compose 2>/dev/null
6
+ if [ "$?" == "0" ]; then
7
+ docker-compose down -v
8
+ else
9
+ docker compose down -v
10
+ fi
11
else
12
echo "Operation cancelled."
13
fi
0 commit comments