环境
centos7 2核4G
yum工具
yum install -y yum-utils device-mapper-persistent-data lvm2
添加镜像源
yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
将软件包添加至本地缓存
yum makecache fast
安装docker-ce
yum install docker-ce -y
设置docker开机启动
systemctl enable docker
启动docker
systemctl start docker
查看详细信息
docker info
来源:oschina
链接:https://my.oschina.net/u/4230760/blog/3122948