Ubuntu23.04
Ubuntu23.04是短期发行版,许多变化作为明年Ubuntu24.04 LTS长期发行版的基础。试过几个其它发行版安装时不能直接驱动新电脑硬件,安装Ubuntu23.04还算比较顺畅。Ubuntu23.04下载地址:https://releases.ubuntu.com/lunar/
安装Docker步骤
apt update
apt-get install ca-certificates curl gnupg lsb-release
# 导入源仓库GPG key
curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
# 写入软件源信息
sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
# 安装docker
sudo apt-get install docker-ce docker-ce-cli containerd.io
systemctl enable docker
# 启动docker
systemctl start docker
测试Docker
docker version
docker run hello-world