
正文
docker配置阿里云的仓库源以及安装docker-compose
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
[root@localhost mnt]# cat /etc/docker/daemon.json
{
"registry-mirrors": ["https://3laho3y3.mirror.aliyuncs.com"]
}
[root@localhost mnt]# systemctl restart docker
最简便的安装docker-compose的方法(包含优化docker软件包源的方法)
yum -y install epel-release
yum -y install docker-io
vim /etc/docker/daemon.json
systemctl restart docker
yum -y install python-pip
pip install docker-compose






