Skip to content

Instantly share code, notes, and snippets.

@cuibonobo
Last active August 28, 2016 02:51
Show Gist options
  • Save cuibonobo/e909300927f7ccce1fce71f808daacd0 to your computer and use it in GitHub Desktop.
Save cuibonobo/e909300927f7ccce1fce71f808daacd0 to your computer and use it in GitHub Desktop.
Getting Docker Compose running on a minimum install CentOS 7
#!/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
/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