Created
June 7, 2017 10:47
-
-
Save linben/1652f26741d0606b5711c9e3fc3ecc7a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo setenforce 0 && \ | |
sudo sed -i --follow-symlinks 's/^SELINUX=.*/SELINUX=disabled/g' /etc/sysconfig/selinux | |
sudo 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 | |
sudo yum -y update --exclude="docker-engine*" | |
sudo mkdir -p /etc/systemd/system/docker.service.d | |
sudo tee /etc/systemd/system/docker.service.d/override.conf <<- EOF | |
[Service] | |
Restart=always | |
StartLimitInterval=0 | |
RestartSec=15 | |
ExecStartPre=-/sbin/ip link del docker0 | |
ExecStart= | |
ExecStart=/usr/bin/dockerd --storage-driver=overlay | |
EOF | |
sudo yum downgrade -y policycoreutils libsemanage-python | |
sudo rpm -e --nodeps audit-libs-2.6.5-3.el7_3.1.x86_64 | |
sudo yum install -y docker-engine-1.13.1 docker-engine-selinux-1.13.1 | |
sudo systemctl start docker | |
sudo systemctl enable docker | |
sudo yum install -y wget | |
sudo yum install -y git | |
sudo yum install -y unzip | |
sudo yum install -y curl | |
sudo yum install -y xz | |
sudo yum install -y ipset | |
sudo getent group nogroup || sudo groupadd nogroup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment