Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Docker on Linux Mint
##########################################
# To run:
# curl -sSL https://gist.githubusercontent.com/sirkkalap/e87cd580a47b180a7d32/raw/d9c9ebae4f5cf64eed4676e8aedac265b5a51bfa/Install-Docker-on-Linux-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
@tomaskrcka
Copy link

tomaskrcka commented Dec 4, 2015

The line 13 should be rather like this sudo sh -c 'echo deb https://get.docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list'

@battmanux
Copy link

battmanux commented May 3, 2016

an other way that I like better line 13:
echo deb https://get.docker.com/ubuntu docker main | sudo tee /etc/apt/sources.list.d/docker.list

@rodwin
Copy link

rodwin commented Aug 9, 2016

what i did is copy the
wget -qO- https://get.docker.com/ | sh

from https://get.docker.com then add myself in the docker group so i can use docker without sudo

@ylmrx
Copy link

ylmrx commented Dec 1, 2016

@rodwin : it won't work on Linux Mint.

edit : nevermind, it does work, rely on /etc/debian_version instead of lsb_release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment