Skip to content

Instantly share code, notes, and snippets.

@bashkirtsevich
Last active July 31, 2018 17:59
Show Gist options
  • Select an option

  • Save bashkirtsevich/ad80619ea8ce1fbe0c7204a4e008be90 to your computer and use it in GitHub Desktop.

Select an option

Save bashkirtsevich/ad80619ea8ce1fbe0c7204a4e008be90 to your computer and use it in GitHub Desktop.
CentOS7 docker install

Original source URL

Original automatic install:

bash <(curl -s http://repository.sandbox.infoboxcloud.ru/scripts/docker/centos7/install.sh)

Gist automatic install:

bash <(curl -s https://gist.githubusercontent.com/bashkirtsevich/ad80619ea8ce1fbe0c7204a4e008be90/raw/59deb186f181503826c8d69cfa1d2147ed63daa5/docker-install.sh)
#!/bin/bash
echo "Installing docker stack (script 2015.12.28)..."
echo "If you find an error in the script, please write to [email protected]"
sudo yum -y update
sudo systemctl stop postfix && systemctl disable postfix
#sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
#setenforce 0
sudo yum install -y epel-release
sudo yum -y install python-pip
sudo pip install -U docker-compose
sudo 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
sudo yum install -y docker-engine
sudo systemctl start docker && systemctl enable docker
echo "Installation completed. Thank you for using InfoboxCloud."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment