Skip to content

Instantly share code, notes, and snippets.

@bitboxx
Last active February 15, 2017 09:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bitboxx/aff61c4cb06d5a5f1e5b536b62665cac to your computer and use it in GitHub Desktop.
Save bitboxx/aff61c4cb06d5a5f1e5b536b62665cac to your computer and use it in GitHub Desktop.
Install Docker on CentOS 7 (and maybe higher)
# Copy paste in terminal
# Source: https://docs.docker.com/engine/installation/linux/centos/
sudo yum install -y yum-utils makecache fast
sudo yum-config-manager \
--add-repo \
https://docs.docker.com/engine/installation/linux/repo_files/centos/docker.repo
sudo yum -y install docker-engine
sudo systemctl enable docker
sudo systemctl start docker
# Install Docker compose
sudo yum install -y epel-release
sudo yum install -y python-pip
sudo pip install docker-compose
sudo yum upgrade -y python*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment