Created
February 11, 2020 13:16
-
-
Save leberblock/83f462cf7d0f7894f36084526fb40970 to your computer and use it in GitHub Desktop.
install docker and docker-compose on centos7
This file contains 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
## 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