Created
October 1, 2016 13:29
-
-
Save fcjurado/ba266337014912bde974bed47219cd28 to your computer and use it in GitHub Desktop.
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
########################################## | |
# To run: | |
# curl -sSL https://gist.githubusercontent.com/fcjurado/ba266337014912bde974bed47219cd28/raw/87bb06a6aa72ff9783725ae8ce14c5f9508eaff5/install-docker-mint.sh | bash -x | |
########################################## | |
# Check that HTTPS transport is available to APT | |
if [ ! -e /usr/lib/apt/methods/https ]; then | |
sudo apt-get update | |
sudo apt-get install -y apt-transport-https | |
fi | |
# Add the repository to your APT sources | |
sudo echo deb https://get.docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list | |
# Then import the repository key | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
# Install docker | |
sudo apt-get update | |
sudo apt-get install -y docker.io cgroup-lite apparmor | |
# | |
# Alternatively, just use the curl-able install.sh script provided at https://get.docker.com | |
# | |
echo Add group docker to current user | |
sudo usermod -a -G docker $USER | |
echo Adding docker-engine | |
# Add the new gpg key | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
# Add /etc/apt/sources.list.d/docker.list | |
sudo vim /etc/apt/sources.list.d/docker.list | |
# Ubuntu Trusty | |
#deb https://apt.dockerproject.org/repo ubuntu-trusty main | |
# Install | |
sudo apt-get update | |
sudo apt-get purge lxc-docker | |
#sudo apt-get install linux-image-extra-$(uname -r) | |
sudo apt-get install docker-engine | |
# Give non-root access | |
# sudo gpasswd -a ${USER} dock | |
echo Docker engine installed, try 'sudo service docker start' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment