安装docker
安装依赖 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 install docker-ce docker-ce-cli containerd.io -y 启动 systemctl daemon-reload systemctl restart docker
安装docker-compose
wget https://github.com/docker/compose/releases/download/v2.10.2/docker-compose-linux-x86_64 mv docker-compose-linux-x86_64 /usr/local/bin/docker-compose 将可执行权限应用于二进制文件: $ sudo chmod +x /usr/local/bin/docker-compose 创建软链: $ sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose 测试是否安装成功: $ docker-compose --version
标签:bin,compose,ce,centos7,yum,usr,docker From: https://www.cnblogs.com/topass123/p/16744955.html