iPlay / iTech · 2024年4月26日

ubuntu 22.04 安装docker和docker-compose

一、安装docker

sudo apt install docker.io

二、安装docker-compose

sudo curl -L "https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose