Last active
December 12, 2019 23:02
-
-
Save OrthoDex/88afc609de4f5b51e656d2b12452a571 to your computer and use it in GitHub Desktop.
Initialization script for AWS Lightsail to run docker.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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