Skip to content

Instantly share code, notes, and snippets.

@Edison-Hsu
Last active January 13, 2018 14:57
Show Gist options
  • Save Edison-Hsu/84d785a4b0eb527e0d3251bc27a39925 to your computer and use it in GitHub Desktop.
Save Edison-Hsu/84d785a4b0eb527e0d3251bc27a39925 to your computer and use it in GitHub Desktop.
ubuntu_install_docker
#! /bin/bash
apt-get upgrade
apt-get update
apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt-get update
apt-get install docker-ce -y
# install docker-compose
# pip install docker-compose
# speed up
# curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://d2137366.m.daocloud.io
# systemctl restart docker.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment