这篇文章距离最后更新已过219 天,如果文章内容或图片资源失效,请留言反馈,我会及时处理,谢谢!
docker安装
官方一键脚本(推荐)
curl -fsSL https://get.docker.com | bash -s docker
deb系统源安装
apt install docker.io
docker-compose安装
国外
curl -L "https://github.com/docker/compose/releases/download/v2.24.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
国内
curl -L "https://mirror.ghproxy.com/https://github.com/docker/compose/releases/download/v2.24.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
验证
docker -v
docker-compose -v