CentOS中安装Docker步骤


1、安装仓库所需要的软件包

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

2、设置yum加速源

yum-config-manager --add-repo http://mirrors.aliyun.com/repo/Centos-7.repo

3、安装docker-ce

yum install docker-ce docker-ce-cli containerd.io

4、启动docker

systemctl start docker

5、查看docker启动状态

systemctl status docker

image-20200611150227240

6、相应的其他指令

# 关闭docker
systemctl stop docker

# 开机启动docker
systemctl enable docker


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM