标签归档:rocky

rocky linux 9.3 安装 docker

sudo dnf check-update
sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo dnf install docker-ce docker-ce-cli containerd.io
sudo systemctl enable --now docker
sudo systemctl status docker

非 root 账号添加权限

sudo usermod -aG docker $(whoami)

使用 docker-compose 启动

docker compose up -d