This file contains 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 | |
# Remove existing packages | |
apt-get purge docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc -y | |
apt-get autoremove -y | |
# Add Docker's official GPG key: | |
sudo apt update | |
sudo apt install ca-certificates curl gnupg -y | |
sudo install -m 0755 -d /etc/apt/keyrings |
This file contains 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 | |
reset | |
echo y | docker system prune | |
docker stop `docker ps -qa` 2>/dev/null | |
echo -e "\e[32m Stopped all possible containers ✓ \e[0m" | |
docker rm `docker ps -qa` 2>/dev/null |