Demo entry 6636483

bash

   

Submitted by ping on Aug 25, 2017 at 05:04
Language: Bash. Code size: 252 Bytes.

# 下载必要的组件
yum install -y yum-utils device-mapper-persistent-data lvm2

# 添加仓库
yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo

# 更新索引
yum makecache fast

# 安装 docker-ce
yum install docker-ce

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).