Docker 容器内的 Ubuntu:apt-get 更新失败(写入输出文件时出错)

Docker 容器内的 Ubuntu:apt-get 更新失败(写入输出文件时出错)

在我的 Docker 平台上,我创建了一个容器(docker run -it --name UBUNTU ubuntu bash),并且它可以运行(启动 + 以 root 身份登录)

但是当我尝试使用“apt-get update”更新 repo 时,我得到了:

root@a638632113f5:/# apt-get update
Get:1 archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Err:1 archive.ubuntu.com/ubuntu focal InRelease
  Error writing to output file - write (28: No space left on device) [IP: 91.189.88.142 80]
Get:2 archive.ubuntu.com/ubuntu focal-updates InRelease [107 kB]
Err:2 archive.ubuntu.com/ubuntu focal-updates InRelease
  Error writing to output file - write (28: No space left on device) [IP: 91.189.88.142 80]
Get:3 archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]
Err:3 archive.ubuntu.com/ubuntu focal-backports InRelease
  Error writing to output file - write (28: No space left on device) [IP: 91.189.88.142 80]
Get:4 security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
Err:4 security.ubuntu.com/ubuntu focal-security InRelease
  Error writing to output file - write (28: No space left on device) [IP: 91.189.91.39 80]
Reading package lists... Done
W: Failed to fetch archive.ubuntu.com/ubuntu/dists/focal/InRelease  Error writing to output file - write (28: No space left on device) [IP: 91.189.88.142 80]
W: Failed to fetch archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease  Error writing to output file - write (28: No space left on device) [IP: 91.189.88.142 80]
W: Failed to fetch archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease  Error writing to output file - write (28: No space left on device) [IP: 91.189.88.142 80]
W: Failed to fetch security.ubuntu.com/ubuntu/dists/focal-security/InRelease  Error writing to output file - write (28: No space left on device) [IP: 91.189.91.39 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.

这是什么意思?(我猜这不是 DNS 的问题)

/etc/apt/sources.list似乎是最新的

cat /etc/os-release得到:

NAME="Ubuntu"
VERSION="20.04 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="www.ubuntu.com/"
SUPPORT_URL="help.ubuntu.com/"
BUG_REPORT_URL="bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal

如何解决这个问题?

相关内容