linux下docker和dockercompose的安装与使用[操作系统入门]
1.安装依赖包
sudoyuminstall -y yum-utils device-mapper-persistent-data lvm2
2.设置阿里云镜像源
sudoyum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
3.安装docker-ce
sudoyuminstall docker-ce
4.设置开机启动docker-ce
sudo systemctl enable dockersudo systemctl start docker
5.安装docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudochmod +x /usr/local/bin/docker-compose
docker-compose --version
linux下docker和docker-compose的安装与使用
原文:https://www.cnblogs.com/liaozhenghan/p/13277529.html
以上是 linux下docker和dockercompose的安装与使用[操作系统入门] 的全部内容, 来源链接: utcz.com/z/518219.html