datatracker/docker/cleanall
Nicolas Giard 083732557d
fix: skip assets volume in cleandb script + add confirm prompt to cleanall (#4038)
* fix: skip assets volume in cleandb script + add confirm prompt to cleanall

* fix: remove purge dangling images from cleanall script
2022-06-13 12:13:16 -05:00

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