Skip to content

Instantly share code, notes, and snippets.

@mbierman
Created April 12, 2022 19:35
Show Gist options
  • Select an option

  • Save mbierman/a51115bc4fd38170369b8ecb1e438f10 to your computer and use it in GitHub Desktop.

Select an option

Save mbierman/a51115bc4fd38170369b8ecb1e438f10 to your computer and use it in GitHub Desktop.
Reset Dockers on Firewalla
#!/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