CentOS7.6安装docker最新版

CentOS7.6安装docker最新版

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

  1. yum install -y 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
  4. rpm –import https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
  5. yum -y install docker-ce
  6. systemctl enable docker
  7. systemctl restart docker

发表回复

*您的电子邮件地址不会被公开。必填项已标记为 。

*
*