Created
May 30, 2018 11:57
-
-
Save squaredice/1dff6bdc27b992e480862a7ab4e1d935 to your computer and use it in GitHub Desktop.
Docker install
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 | |
sudo sh -c 'apt-get update | |
apt-get upgrade -y | |
apt-get dist-upgrade -y' | |
echo ========================================================================================================================================================================================= | |
echo ==========START INSTALLING DOCKER====================START INSTALLING DOCKER====================START INSTALLING DOCKER================================================================== | |
echo ========================================================================================================================================================================================= | |
sudo sh -c 'apt-get update | |
apt-get -y 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 - | |
add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \ | |
$(lsb_release -cs) \ | |
edge" | |
apt-get update | |
apt-get install -y docker-ce | |
sudo usermod -aG docker $USER' | |
echo ========================================================================================================================================================================================= | |
echo ==========THE DOCKER ARE INSTALLED==============================THE DOCKER ARE INSTALLED==============================THE DOCKER ARE INSTALLED=========================================== | |
echo ========================================================================================================================================================================================= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment