Skip to content

Instantly share code, notes, and snippets.

@pretorh
Last active June 24, 2018 14:04
Show Gist options
  • Save pretorh/2623cfd608ea5cf5b1a054b958bda382 to your computer and use it in GitHub Desktop.
Save pretorh/2623cfd608ea5cf5b1a054b958bda382 to your computer and use it in GitHub Desktop.
vm setup
echo LANG=en_US.UTF-8 >> /etc/environment
echo LC_ALL=en_US.UTF-8 >> /etc/environment
hostnamectl set-hostname --static example.com
yum update -y
yum install docker -y
curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
sudo systemctl enable docker.service
sudo systemctl start docker.service
usermod -a -G docker ec2-user

replace curl command with the one on https://docs.docker.com/compose/install/#install-compose

replace ec2-user with your user name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment