Centos下安装Docker和Compose
2022/11
15
20:11
【可选】 如果在国内,可能需要添加国内镜像
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://yxzrazem.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
---
yum install docker
service docker start
---
[安装 docker-compose]
https://github.com/docker/compose/releases
下载docker-compose-Linux-x86_64
更名为docker-compose
移/usr/local/bin目录下
CopyRights: The Post by BY-NC-SA For Authorization,Original If Not Noted,Reprint Please Indicate From 老刘@开发笔记
Post Link: Centos下安装Docker和Compose
Post Link: Centos下安装Docker和Compose