Docker on Linux Mint 2017
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:
//https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#uninstall-old-versions
//docker.io 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 docker.io
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | 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) <docker@docker.com>
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] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
// If that failed then do, because trusty is the actual name we need then
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
trusty \
stable"
// 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, http://packages.ubuntu.com/trusty/i386/libsystemd-journal0/download
edit as sudo /etc/apt/sources.list
add line below:
deb http://cz.archive.ubuntu.com/ubuntu trusty main
Then
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
groups
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