Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save justintien/ff1366565f736c1611d76f10c5f803e6 to your computer and use it in GitHub Desktop.
Save justintien/ff1366565f736c1611d76f10c5f803e6 to your computer and use it in GitHub Desktop.
aws-ec2-ami-ubuntu-16.04(LTS)

find ami: ami-a163b4cc

# see https://docs.docker.com/engine/installation/linux/ubuntu/
sudo apt-get update
sudo apt-get install -y \
	apt-transport-https \
	ca-certificates \
	curl \
	software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository    "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update

sudo apt-get install docker-ce

sudo usermod -a -G docker ubuntu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment