"vscode:/vscode.git/clone" did not exist on "0366c74f0db70640c307c3d9447710af5c3f5d35"
confirm_remove.sh 356 Bytes
Newer Older
1
2
3
4
#!/bin/bash
echo "Warning: This will remove all containers and volumes, including persistent data. Do you want to continue? [Y/N]"
read ans
if [ "$ans" == "Y" ] || [ "$ans" == "y" ]; then
5
6
7
8
9
10
  command docker-compose 2>/dev/null
  if [ "$?" == "0" ]; then
    docker-compose down -v
  else
    docker compose down -v
  fi
11
12
13
else
  echo "Operation cancelled."
fi