我将 Ubuntu Server 22.0.4.3 LTS 安装在 USB 驱动器上。
我将其安装在一台带有一个硬盘(1TB)的旧电脑上。
安装没有问题。
我可以登录然后......
sudo apt update
sudo apt upgrade
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
安装最新版本:
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
验证一下:
sudo docker run hello-world
返回此错误:
Unable to find image 'hello-world:latest' locally docker:
Error response from daemon: unknown: <html><body><h1>408 Request Time-out</h1> Your browser didn't send a complete request in time. </body></html>.
See 'docker run --help'
任何帮助都将不胜感激。我以前做过一次,我很懊悔,因为我确定我没有错过什么,不是吗?