马上注册,免受广告困扰,轻松兑换eSIM!
您需要 登录 才可以下载或查看,没有账号?注册
×
Docker 官方一键安装脚本,从阿里源安装curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
设置开机自启启动Docker一键安装最新版 Docker Compose:curl -L https://get.daocloud.io/docker/compose/releases/download/v2.4.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
配置镜像源mkdir -p /etc/docker
tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": [
"https://docker.naixi.net",
"https://docker-2.naixi.net"
]
}
EOF
重启服务systemctl daemon-reload
systemctl restart docker
查看是否生效 |