Last active
April 30, 2019 22:35
-
-
Save DuaneNielsen/3f021803cabd3bf70d013f566c450b96 to your computer and use it in GitHub Desktop.
Install Docker
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
setenforce 0 | |
sed -i 's/^SELINUX=enforcing$/SELINUX=disabled/' /etc/selinux/config | |
systemctl set-default multi-user.target | |
swapoff -a | |
systemctl stop firewalld | |
systemctl disable firewalld |
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
yum remove docker docker-common container-selinux docker-selinux docker-engine -y | |
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo -y | |
yum install -y --setopt=obsoletes=0 docker-ce-17.03.2.ce-1.el7.centos.x86_64 docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch | |
systemctl enable docker && systemctl start docker | |
docker version |
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
wget -O - https://gist.githubusercontent.com/DuaneNielsen/3f021803cabd3bf70d013f566c450b96/raw/fbeeea40aa0be56098ea34cce9357292a603f15e/install_docker.sh | bash | |
wget -O - https://gist.githubusercontent.com/DuaneNielsen/3f021803cabd3bf70d013f566c450b96/raw/0c6915f2ceea8fa953f7c5de9825e1b2c627aa5c/config_linux.sh | bash | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment