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

 

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM