Forked from BeerOnBeard/install-docker-ce-on-elementaryos-loki.sh
Last active
December 28, 2018 04:32
-
-
Save yaravind/4b9658d9cfab2629259f6d82b95aec72 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; | |
echo 'All done!' |
use the following command to verify docker installation
sudo docker run hello-world
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You might see the following error/warning during the installation. You CAN IGNORE them!
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable";
Err:10 https://download.docker.com/linux/ubuntu juno Release
404 Not Found [IP: 2600:9000:2004:a400:3:db06:4200:93a1 443]
Get:11 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:12 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages [5,491 B]
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/ubuntu juno Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.