Last active
December 19, 2022 11:14
-
-
Save mahmoud-eskandari/ce4c5d553e5b3f24e5378593891d9736 to your computer and use it in GitHub Desktop.
Docker and Docker Compose installation on Linux
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
curl -fsSL https://get.docker.com | sh | |
curl -L "https://github.com/docker/compose/releases/download/$(curl --silent "https://api.github.com/repos/docker/compose/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")')/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
RUN:
curl -s https://gist.githubusercontent.com/mahmoud-eskandari/ce4c5d553e5b3f24e5378593891d9736/raw/672d35ca45b5facc677eca5f765490872f1f4d91/docker-docker-compose-install-centos-7.sh | bash