Skip to content

Instantly share code, notes, and snippets.

@mayeco
Last active June 29, 2017 19:26
Show Gist options
  • Select an option

  • Save mayeco/5cf19c25483e704909954cee52b8f07b to your computer and use it in GitHub Desktop.

Select an option

Save mayeco/5cf19c25483e704909954cee52b8f07b to your computer and use it in GitHub Desktop.
Install docker
#!/bin/sh
set -e
sudo yum remove -y docker docker-common container-selinux docker-selinux docker-engine docker-ce
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum makecache fast
sudo yum install -y docker-ce git
sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -aG docker $(whoami)
sudo sh -c 'curl -L https://github.com/docker/compose/releases/download/1.14.0/docker-compose-`uname -s`-`uname -m` > /usr/bin/docker-compose'
sudo sh -c 'chmod +x /usr/bin/docker-compose'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment