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