Mdaeo'Blog

Debian/Ubuntu一键安装Docker和DockerCompose

Docker安装脚本使用教程

一键脚本

连上VPS后,直接运行脚本即可安装Docker:

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh

官方手动安装教程

Docker Compose安装教程

目前最新版docker自带compose了已经,安装完docker 可执行 docker compose version 验证

作为插件安装

Ubuntu and Debian

软件

sudo apt-get update
sudo apt-get install docker-compose-plugin

CentOS and Ubuntu

sudo yum update
sudo yum install docker-compose-plugin

安装成功验证

docker compose version

官方文档链接

独立安装

官方文档链接

国内机安装

一键安装脚本

CDN(推荐)

bash <(curl -sSL https://linuxmirrors.cn/docker.sh)

Gitee

bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh)

官方文档

https://linuxmirrors.cn/other/

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »