ubuntu 22.04安装docker和docker-compose
官方一键脚本 curl -fsSL https://get.docker.com -o get-docker.sh chmod +x get-docker.sh ./get-docker.sh apt install docker-compose 手动安装docker和docker-compose 关于它们的作用这个视频是我见过讲得最清楚的 # 更新软件包列表 sudo apt update # 安装几个必备软件包 sudo apt install apt-transport-https ca-certificates curl software-properties-common # 将官方 Docker 存储库的 GPG 密钥添加到系统 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor…