Linux Mint Cinamon

Below are the notes to get it going on my Mint server(s). Cribbed from the web, and recorded here for my own future use:


// was the ubuntu maintained image - to avoid name conflict with their ui docker.
// Now the image is docker.ce, so no conflict, therefore
sudo apt-get remove docker docker-engine
sudo apt-get update
sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
curl -fsSL | sudo apt-key add -

// confirm
sudo apt-key fingerprint 0EBFCD88

pub   4096R/0EBFCD88 2017-02-22
      Key fingerprint = 9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88
uid                  Docker Release (CE deb) <>
sub   4096R/F273FCD8 2017-02-22

// if you get a warning about mir, its related to the below, which is harmless.
export DISPLAY=:0

sudo add-apt-repository \
   "deb [arch=amd64] \
   $(lsb_release -cs) \

// If that failed then do, because trusty is the actual name we need then
sudo add-apt-repository \
   "deb [arch=amd64] \
   trusty \

// Note you can directly update the list as well via below - so you can tidy it up
sudo vi /etc/apt/sources.list.d/additional-repositories.list

sudo apt-get update
sudo apt-get install docker-ce

// if fails on libsystemd-journal0,
edit as sudo /etc/apt/sources.list
add line below:
deb trusty main

sudo apt-get update
sudo apt-get install docker-ce

sudo docker run hello-world
sudo groupadd docker
sudo usermod -aG docker $USER
//logout and in again
docker run hello-world

// Any problems, then change persmissions of your .docker dir
sudo chown "$USER":"$USER" /home/"$USER"/.docker -R
sudo chmod g+rwx "/home/$USER/.docker" -R

// make it start on reboot
sudo systemctl enable docker