Last active
May 20, 2021 05:52
-
-
Save arupgsh/04ba8ecf3b96ef496e28359636fbeede to your computer and use it in GitHub Desktop.
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
## If you are facing timeout [Error 12] with official repository | |
## Check the commans before running as root | |
#sudo yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine # remove previous version | |
sudo yum install -y yum-utils | |
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo | |
#yum list docker-ce --showduplicates | sort -r #List all available docker versions | |
sudo yum install docker-ce docker-ce-cli containerd.io #install | |
sudo systemctl start docker # strat docker service | |
sudo docker run hello-world # run test | |
sudo systemctl enable docker #add to statup | |
## To run as non root user | |
sudo usermod -aG docker $(whoami) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment