Last active
August 28, 2016 02:51
-
-
Save cuibonobo/e909300927f7ccce1fce71f808daacd0 to your computer and use it in GitHub Desktop.
Getting Docker Compose running on a minimum install CentOS 7
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
#!/bin/bash | |
# Install Docker | |
curl -L -s https://get.docker.com/ | sh | |
# Add the user that will be working with Docker to the docker group | |
usermod -aG docker jen | |
# Start the Docker service | |
systemctl start docker.service | |
systemctl enable docker.service | |
# Install the EPEL repo, pip, and upgrade any Python packages | |
yum install -y epel-release | |
yum install -y python-pip | |
yum upgrade -y python* | |
# Upgrade pip and then install Docker Compose | |
pip install --upgrade pip | |
pip install docker-compose | |
# Bump up the version for this package to meet requirements | |
pip install --upgrade backports.ssl-match-hostname | |
# Copy the logrotate file | |
cp docker.logrotate /etc/logrotate.d/docker |
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
/var/lib/docker/containers/*/*-json.log { | |
size 5120k | |
rotate 5 | |
copytruncate | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment