Skip to content

Instantly share code, notes, and snippets.

@DuaneNielsen
Last active April 30, 2019 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DuaneNielsen/3f021803cabd3bf70d013f566c450b96 to your computer and use it in GitHub Desktop.
Save DuaneNielsen/3f021803cabd3bf70d013f566c450b96 to your computer and use it in GitHub Desktop.
Install Docker
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
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
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