Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save leberblock/83f462cf7d0f7894f36084526fb40970 to your computer and use it in GitHub Desktop.
Save leberblock/83f462cf7d0f7894f36084526fb40970 to your computer and use it in GitHub Desktop.
install docker and docker-compose on centos7
## install docker
yum check-update
curl -fsSL https://get.docker.com/ | sh
systemctl start docker
systemctl status docker
systemctl enable docker
-> docker with non-root user
usermod -aG docker $(whoami)
## install docker-compose
current release -> https://github.com/docker/compose/releases
curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
docker-compose --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment