Skip to content

Instantly share code, notes, and snippets.

@mandeepbal
Created August 4, 2015 15:05
Show Gist options
  • Save mandeepbal/83d3cba7ecb38c1af823 to your computer and use it in GitHub Desktop.
Save mandeepbal/83d3cba7ecb38c1af823 to your computer and use it in GitHub Desktop.
User Data - Install docker on AWS CentOS 7 machine
#!/bin/bash
yum update -y
cat >/etc/yum.repos.d/docker.repo <<-EOF
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOF
yum install docker-engine -y
service docker start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment