#下载docker依赖组件 yum -y install yum-utils device-mapper-persistent-data lvm2 #设置下载的docker 的进项源为阿里云 yum-config-manager -add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo #安装docker服务 yum -y install docker-ce #安装成功后设置开机启动 #启动dokcer服务 systemctl start docker #设置开机自启动 systemctl enable docker 测试是否安装成功 docker version
docker-compose 安装
下载linux 版docker-compse https://github.cm.dokcer/compose/releases/tag/v2.2.1/docker-compose-Linux-x86_64
chmod +x docker-compose-Linux-86_64
mv dokcer-compose-Linux-x86_64 docker-compose
mv docker-compose /usr/bin
docker-compose version
标签:compose,centos,ce,yum,docker,安装 From: https://www.cnblogs.com/goPush/p/17853343.html