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
#! /bin/bash +X | |
# later we will disable selinux | |
# sudo setenforce Permissive | |
# getenforce # just incase youy want to check selinuxmode | |
# lets make sure we are a clean install of docker | |
sudo yum remove docker docker-common docker-selinux docker-engine-selinux docker-engine docker-ce | |
# now install some tools dmpd(for short) ensures rhel 7 respects gpg settings in repos (issue is https://access.redhat.com/solutions/2850911) see https://access.redhat.com/discussions/5336741 for the fix | |
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 |