Docker - 安装 docker

时间:2021-09-07 16:55:56   收藏:0   阅读:22

1. 配置依赖环境

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

2. 配置镜像源

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

3. 安装

yum makecache fast
yum -y install docker-ce

4. 启动 docker

systemctl start docker  # 启动
systemctl enable docker # 开机自启
docker version          # 查看版本

原文:https://www.cnblogs.com/Icarus0727/p/15236472.html

评论(0)
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!