Last active
March 29, 2022 07:27
-
-
Save kevenli/cd5b1ceb5b2e033f503311ad663432e9 to your computer and use it in GitHub Desktop.
install docker 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
sudo yum install -y yum-utils | |
sudo yum-config-manager \ | |
--add-repo \ | |
https://download.docker.com/linux/centos/docker-ce.repo | |
sudo yum install docker-ce docker-ce-cli containerd.io -y | |
sudo systemctl enable --now docker |
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
sudo yum install python3 python3-devel -y | |
sudo pip3 install -U pip | |
pip3 install docker-compose |
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
# /etc/profile.d/python3.sh | |
PATH=$PATH:/usr/local/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment