centos 7 安装docker

1.更新包

sudo yum update 

2.安装docker

sudo yum -y install docker

 3.启动docker

//查看docker状态
service docker status 
//启动docker
service docker start  

4.开机自启动

//开机启动
systemctl enable docker.service
//查看是否开机启动
systemctl is-enabled docker.service

posted @ 2022-08-18 14:26  微风吹过~  阅读(29)  评论(0编辑  收藏  举报