* fix: skip assets volume in cleandb script + add confirm prompt to cleanall * fix: remove purge dangling images from cleanall script
13 lines
297 B
Bash
Executable file
13 lines
297 B
Bash
Executable file
#!/bin/bash
|
|
|
|
read -p "Stop and remove all containers, volumes and images for this project? [y/N] " -n 1 -r
|
|
echo
|
|
if [[ $REPLY =~ ^[Yy]$ ]]
|
|
then
|
|
cd ..
|
|
echo "Shutting down any instance still running and purge images..."
|
|
docker compose down -v --rmi all
|
|
cd docker
|
|
echo "Done!"
|
|
fi
|