CentOS7.6安装docker最新版

注意Centos7.4系统以下需要升级内核,否则会安装失败

 yum install -y yum-utils device-mapper-persistent-data lvm2
 yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
 yum makecache fast
 rpm --import https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
 yum -y install docker-ce
 systemctl enable docker
 systemctl restart docker

  

posted @ 2019-06-24 16:08  也曾少年  阅读(4678)  评论(0编辑  收藏  举报