1:查看系统内核
uname -r
2:更新yum源
yum -y update
3:卸载旧版docker
sudo yum remove docker docker-common docker-selinux docker-engine
4:安装所需依赖扩展
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
5:安装
sudo yum install docker-ce
6:启动docker
sudo systemctl start docker
sudo systemctl enable docker
7:查看docker
sudo docker info
8:修改docker源
vi /etc/docker/daemon.json
{ "registry-mirrors": ["https://###.mirror.aliyuncs.com"] } #地址替换自己的
11 (2024-03-02)
11
站长回复:dwdwdwdwd