Last active
September 27, 2017 16:14
-
-
Save kkappel/48c76e49adda7d15c40ce6c477e285d2 to your computer and use it in GitHub Desktop.
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/sh | |
| # Install Docker on debian 9.1 | |
| # | |
| # (c) 2017 by Klaus Kappel <kkappel@jugendhilfe-wuemmetal.de> | |
| # No Warranty at all | |
| # Best Parctice: take a brand new debian-netinstall out of the box | |
| # be sure, that network is already running | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Please run as root" | |
| exit | |
| fi | |
| # Check if there ist any old docker installation | |
| apt-get remove docker docker-engine docker.io | |
| apt-get update | |
| apt-get install \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| gnupg2 \ | |
| software-properties-common | |
| curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | apt-key add - | |
| apt-key fingerprint 0EBFCD88 | |
| read | |
| add-apt-repository \ | |
| "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \ | |
| $(lsb_release -cs) \ | |
| stable" | |
| apt update | |
| apt-get install docker-ce |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment