Skip to content

Instantly share code, notes, and snippets.

@uehara1414
Created March 19, 2017 10:10
Show Gist options
  • Save uehara1414/78ccfab6c96e58535e56f2bc5d59a297 to your computer and use it in GitHub Desktop.
Save uehara1414/78ccfab6c96e58535e56f2bc5d59a297 to your computer and use it in GitHub Desktop.
yum update
yum install epel-release -y
systemctl enable firewalld
systemctl start firewalld
yum install git vim -y
tee /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
systemctl enable docker.service
systemctl start docker
curl -L https://github.com/docker/compose/releases/download/1.6.2/run.sh > /usr/local/bin/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