Last active
June 14, 2017 03:07
-
-
Save allenday/c875eaf21a2b416f6478c0a48e428f6a to your computer and use it in GitHub Desktop.
install Docker version (instead of Ubuntu version) of docker (docker-ce and not docker.io)
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 | |
# install packages to allow apt to use a repository over HTTPS: | |
sudo apt-get -y install \ | |
apt-transport-https ca-certificates curl software-properties-common | |
# add Docker’s official GPG key: | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
# set up the Docker stable repository. | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
# update the apt package index: | |
sudo apt-get -y update | |
# finally, install docker | |
sudo apt-get -y install docker-ce |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment