CentOS7安装Docker

docker安装

1.下载依赖项

yum -y install yum-utils device-mapper-peristent-data lvn2

2.设置镜像源

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

3.安装

yum -y install docker-ce

启动服务

systemctl start docker

设置开机启动

systemctl enable docker

测试

docker run hello-world

参考资料:
https://www.cnblogs.com/yufeng218/p/8370670.html

posted @ 2020-11-04 14:00  JinweiChang  阅读(67)  评论(0编辑  收藏  举报