Last active
May 10, 2018 08:49
-
-
Save melvz/7587d3b175f53c9f9b330b5b8f19cdf6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 clean all | |
rm -Rf /var/cache/yum | |
yum clean all | |
yum -y install epel-release | |
yum -y install git | |
yum -y install ansible | |
yum -y --enablerepo=epel install python-pip python-devel python | |
pip install docker-compose | |
docker-compose version | |
## Install NetworkManager (not part of the documentation) | |
## For fixing ansible playbook errors about this package not existing | |
yum -y install NetworkManager | |
systemctl enable NetworkManager | |
systemctl start NetworkManager | |
service firewalld stop | |
# Install docker-CE | |
yum install -y yum-utils | |
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
yum makecache fast | |
yum install docker-ce | |
# Install docker | |
#yum --enablerepo="epel" install -y docker | |
#sed -i '/OPTIONS=.*/c\OPTIONS="--selinux-enabled --log-opt max-size=1M --log-opt max-file=3"' /etc/sysconfig/docker | |
## Configure docker-storage-setup. | |
## Make sure you have an extra disk, visible via lsblk command. | |
#lvmconf --disable-cluster | |
#cat <<EOF > /etc/sysconfig/docker-storage-setup | |
#DEVS=/dev/xvdb | |
#VG=docker-vg | |
#WIPE_SIGNATURES=true | |
#EOF | |
## Setup docker storage | |
rm -fr /var/lib/docker | |
#docker-storage-setup | |
## Start docker | |
systemctl enable docker && \ | |
systemctl start docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment