#!/usr/bin/env bash

echo 
echo "*** Installing Docker ***"
echo 

yum install -y zip unzip
yum-config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo 2>&1 >/dev/null
rpm --import https://download.docker.com/linux/centos/gpg
yum install -y docker-ce


systemctl enable docker && systemctl start docker

sed -i /etc/yum.repos.d/docker-ce.repo -e 's/^enabled=1.*$/enabled=0/'
