Created
April 8, 2021 09:16
-
-
Save wingkwong/001f693cd0d32cd6d6a11d44080453e0 to your computer and use it in GitHub Desktop.
Docker CE installation on Centos 7
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 -i | |
yum check-update | |
yum update -y | |
yum install epel-release -y | |
reboot | |
yum install -y yum-utils device-mapper-persistent-data lvm2 | |
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
yum install docker-ce docker-ce-cli containerd.io -y | |
systemctl start docker | |
systemctl status docker | |
systemctl enable docker | |
chkconfig docker on | |
docker ps --all | |
docker image ls | |
usermod -aG docker root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment