Created
April 12, 2022 19:35
-
-
Save mbierman/a51115bc4fd38170369b8ecb1e438f10 to your computer and use it in GitHub Desktop.
Reset Dockers on Firewalla
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo Running installer | |
| read -p "Do you want to continue? (y|n) ? " -n 1 -r | |
| if [[ $REPLY =~ ^[Yy]$ ]]; then | |
| sudo su - | |
| systemctl stop docker-compose@* | |
| systemctl stop docker | |
| cd /var/lib/docker/ | |
| rm -rf overlay2/* | |
| systemctl start docker | |
| sudo docker system prune -a | |
| else | |
| echo -e "\n\nOk then.\n\n" | |
| fi | |
| exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment