Skip to content

Instantly share code, notes, and snippets.

@BeerOnBeard
Last active March 4, 2020 07:27
Show Gist options
  • Save BeerOnBeard/3828ab5c68fd77fdd8dc0d6c2079e245 to your computer and use it in GitHub Desktop.
Save BeerOnBeard/3828ab5c68fd77fdd8dc0d6c2079e245 to your computer and use it in GitHub Desktop.
Install Docker CE on ElementaryOS 0.4.1 Loki
#!/bin/bash
set -e
##########################################################
# Install script for Docker-CE on ElementaryOS 0.4.1 Loki
# Had to update the repository to point to xenial instead
# of using 'lsb_release -cs' because there's no loki
# repository at download.docker.com.
##########################################################
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 -;
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable";
sudo apt-get update;
sudo apt-get install docker-ce;
sudo systemctl enable docker;
echo 'All done!'
@jashk
Copy link

jashk commented Aug 21, 2018

Hi @BeerOnBeard,

You need add sudo usermod -a -G docker $USER to avoid access permissions issues

@BeerOnBeard
Copy link
Author

Hi @jashk,

I did that on purpose following the Docker Post-install instructions warning. I wanted to leave that decision up to the user of this script to consciously decide if they wanted to take on that risk.

@jashk
Copy link

jashk commented Oct 9, 2019

Hi @BeerOnBeard,

Agree.

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