Last active
November 17, 2019 07:11
-
-
Save jeygeethan/2eac49482def3fad647b66521b77593e to your computer and use it in GitHub Desktop.
reinstall docker on any machine
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
#!/usr/sh | |
sudo service docker stop && sudo apt-get purge -y docker-engine && sudo apt-get autoremove --purge -y docker-engine && sudo rm -rf /var/lib/docker && sudo apt-get update && sudo apt-get install -y docker-engine && sudo service docker start && sudo docker run hello-world && sudo usermod -aG docker $USER |
You could change from "any machine" to "linux like's debian" because doesn't works with Red Hat's like and doesn't work Windows
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
instead of #!/usr/sh, it should be #!/usr/bin/sh