Skip to content

Instantly share code, notes, and snippets.

@wingkwong
Created April 8, 2021 09:16
Show Gist options
  • Save wingkwong/001f693cd0d32cd6d6a11d44080453e0 to your computer and use it in GitHub Desktop.
Save wingkwong/001f693cd0d32cd6d6a11d44080453e0 to your computer and use it in GitHub Desktop.
Docker CE installation on Centos 7
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