当前位置:   article > 正文

Centos7下Docker的安装_you dont have either docker-client or docker-clien

you dont have either docker-client or docker-client-latest

先卸载一波 

  1. sudo yum remove docker \
  2. docker-client \
  3. docker-client-latest \
  4. docker-common \
  5. docker-latest \
  6. docker-latest-logrotate \
  7. docker-logrotate \
  8. docker-selinux \
  9. docker-engine-selinux \
  10. docker-engine

安装依赖

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

添加源

  1. sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
  2. sudo yum makecache fast

安装

 yum install docker-ce

开机启动

  1. systemctl enable docker
  2. systemctl start docker

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/空白诗007/article/detail/948026
推荐阅读
相关标签
  

闽ICP备14008679号