Skip to content

Instantly share code, notes, and snippets.

@OrthoDex
Last active December 12, 2019 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save OrthoDex/88afc609de4f5b51e656d2b12452a571 to your computer and use it in GitHub Desktop.
Save OrthoDex/88afc609de4f5b51e656d2b12452a571 to your computer and use it in GitHub Desktop.
Initialization script for AWS Lightsail to run docker.
sudo apt-get update
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
sudo apt-get update
apt-cache policy docker-engine
sudo apt-get install -y docker-engine
sudo usermod -aG docker ubuntu
export LC_ALL=C
sudo apt-get -y install python-pip
sudo pip install docker-compose
chmod +x /usr/local/bin/docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment