zl程序教程

您现在的位置是:首页 >  工具

当前栏目

docker配置阿里云的仓库源以及安装docker-compose

Docker配置安装阿里 以及 仓库 Compose
2023-09-27 14:25:20 时间

[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