banner
zzzhizhi

Hi, zzzhizhi

Coding is love, coding to the world is full of love!
github
x
follow
bilibili
telegram
discord user
email

Installing Docker on CentOS

Linux Kernel: Officially recommended version 3.10 and above.
Check the Linux kernel version:

uname -r

Uninstall old versions:

sudo yum remove docker  docker-common docker-selinux docker-engine

Install dependencies:

sudo yum install -y yum-utils device-mapper-persistent-data lvm2

Set up yum repository (choose one):

# Central repository
sudo yum-config-manager --add-repo http://download.docker.com/linux/centos/docker-ce.repo

# Aliyun repository
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

Install the latest version of Docker:

sudo yum -y install docker-ce

Start Docker and set it to start on boot:

sudo systemctl start docker
sudo systemctl enable docker
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.