美文网首页
CentOS7 安装 Docker

CentOS7 安装 Docker

作者: YUNDONG丶 | 来源:发表于2019-12-11 12:48 被阅读0次
  • 安装插件
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
  • 修改阿里巴巴源
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
  • 更新仓库源信息
sudo yum makecache fast
  • 安装 Docker 社区版
sudo yum -y install docker-ce
  • 启动 Docker 服务
sudo service docker start
  • 查看 Docker 版本
docker version
  • 安装 Hello-Docker
docker pull hello-world
  • 运行 Hello-Docker
docker run hello-world

扩展内容
github
个人博客

相关文章

网友评论

      本文标题:CentOS7 安装 Docker

      本文链接:https://www.haomeiwen.com/subject/oeeogctx.html