Forked from BeerOnBeard/install-docker-ce-on-elementaryos-loki.sh
Last active
August 21, 2018 02:58
-
-
Save jashk/4ae617213af4abed71739cd66103ffd3 to your computer and use it in GitHub Desktop.
Install Docker CE on ElementaryOS 0.4.1 Loki
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
#!/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; | |
sudo usermod -a -G docker $USER; | |
echo 'All done!, please logout and login again' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment