Skip to content

Instantly share code, notes, and snippets.

@trigun117
Created May 30, 2018 11:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trigun117/1dff6bdc27b992e480862a7ab4e1d935 to your computer and use it in GitHub Desktop.
Save trigun117/1dff6bdc27b992e480862a7ab4e1d935 to your computer and use it in GitHub Desktop.
Docker install
#!/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