Last active
January 15, 2020 23:03
-
-
Save revolunet/fa7e30abaa654ca1c8b045f42c05ad88 to your computer and use it in GitHub Desktop.
CentOS install docker stuff
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
#!/bin/sh | |
sudo yum upgrade -y | |
# basics | |
sudo yum install -y git rsync epel-release | |
# htop : https://github.com/hishamhm/htop | |
sudo yum update -y | |
sudo yum install -y htop | |
# ctop : https://github.com/bcicen/ctop | |
sudo wget https://github.com/bcicen/ctop/releases/download/v0.7.3/ctop-0.7.3-linux-amd64 -O /usr/local/bin/ctop | |
sudo chmod +x /usr/local/bin/ctop | |
sudo ln -s /usr/local/bin/ctop /usr/bin/ctop | |
# | |
# install docker engine | |
# https://docs.docker.com/install/linux/docker-ce/centos/ | |
# | |
sudo yum install -y yum-utils device-mapper-persistent-data lvm2 | |
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
sudo yum install -y docker-ce docker-ce-cli containerd.io | |
sudo systemctl start docker | |
# | |
# install docker-compose | |
# https://docs.docker.com/compose/install/ | |
# | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
sudo 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