Skip to content

Instantly share code, notes, and snippets.

@allenday
Last active June 14, 2017 03:07
Show Gist options
  • Save allenday/c875eaf21a2b416f6478c0a48e428f6a to your computer and use it in GitHub Desktop.
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)
#/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