Skip to content

Instantly share code, notes, and snippets.

@kevenli
Last active March 29, 2022 07:27
Show Gist options
  • Save kevenli/cd5b1ceb5b2e033f503311ad663432e9 to your computer and use it in GitHub Desktop.
Save kevenli/cd5b1ceb5b2e033f503311ad663432e9 to your computer and use it in GitHub Desktop.
install docker on centos7
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
sudo yum install python3 python3-devel -y
sudo pip3 install -U pip
pip3 install docker-compose
# /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