Skip to content

Instantly share code, notes, and snippets.

@Itch3f
Forked from dhoeric/Ubuntu 16.04
Created March 14, 2021 12:42
Show Gist options
  • Save Itch3f/9cc2dc445db705aa9e46cbe0463b9bee to your computer and use it in GitHub Desktop.
Save Itch3f/9cc2dc445db705aa9e46cbe0463b9bee to your computer and use it in GitHub Desktop.
install-docker-aws-ec2-user-data
#!/bin/bash
apt-get update
apt-get install -y apt-transport-https ca-certificates
apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
apt-get update
apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual docker-engine
# READ MORE: https://docs.docker.com/engine/installation/linux/ubuntulinux/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment