Last active
June 10, 2018 04:17
-
-
Save peihsinsu/02446d20430b4b544540c2c2b1fe441d to your computer and use it in GitHub Desktop.
full remove docker
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
systemctl stop docker | |
apt remove docker docker.io docker-ce docker-engine -y | |
apt autoremove docker docker.io docker-ce docker-engine -y | |
rm /etc/init/docker | |
rm /etc/init.d/docker | |
rm -rf /var/lib/docker | |
rm -rf /etc/docker | |
rm -rf /etc/default/docker | |
mv /var/lib/dpkg/info/docker-engine.* /tmp/ | |
apt update -y | |
apt install docker-ce -y | |
apt remove docker-ce -y | |
systemctl disable docker | |
systemctl daemon-reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment