docker安装(linux)

1、进入管理模式su root

2、安装必要的系统工具

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

3、添加软件源信息

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

4、跟新并安装Docker-CE

yum makecache fast

yum -yinstall docker-ce

==docker常用指令==

5、启动docker

systemctl start docker

重新启动docker

stytemctl restart docker

开机时自动启动docker

systemctl enable docker

查看docker运行状态

systemctl status docker

 

posted @ 2023-02-09 21:14  Catonce  阅读(36)  评论(0)    收藏  举报