Ubuntu 上安装 Docker
更新包列表:
sudo apt update
安装必要的软件包,以便使用 HTTPS 通过 APT 安装:
sudo apt install apt-transport-https ca-certificates curl software-properties-common
添加 Docker 的官方 GPG 密钥:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
添加 Docker APT 仓库:
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
更新包列表,并安装 Docker CE:
sudo apt update
sudo apt install docker-ce
验证 Docker 是否安装成功:
sudo systemctl status docker
=========================
高防BGP服务器租用,i9高配服务器特惠,游戏盾,显卡机,大带宽。高防云,免费测试 详情咨询QQ259903630