// 安装命令
$ curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-ce-keyrings.gpg
$ echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-ce-keyrings.gpg] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker-ce.list
$ sudo apt-get update
$ sudo apt install -y docker-ce
// 使用脚本一键安装
$ source <(curl -sL https://gitee.com/jack_zang/public-scripts/raw/master/shell/docker/docker-install-ubuntu22.sh)
作者:jackzang 创建时间:2024-07-02 15:50
最后编辑:jackzang 更新时间:2024-07-02 15:52
最后编辑:jackzang 更新时间:2024-07-02 15:52