Podman构建$XDG_RUNTIME_DIR设备上没有剩余空间



我很难更改podman提交容器的目录(在映像构建过程中(,我的计算机XDG_RUNTIME_DIR是1GiB大小的tmpfs,它在大型提交时失败。我设置runroot="/var/tmp";在~/.config/containers/storage.conf中,删除了~/.local/share/containers和podman--日志级别=调试信息正确显示

DEBU[0000] Using run root /var/tmp
DEBU[0000] Using tmp dir /run/user/1000/libpod/tmp

但是当构建一个dockerfile时,我一直收到这个错误

error copying layers and metadata for container "9934f25f0f10548bcab123ef6d5bc8844a670f89d242f8b7cc658b41cf38810f": writing blob: storing blob to file "/run/user/1000/storage565735543/1": write /run/user/1000/storage565735543/1: no space left on device

如何使podman不在$XDG_RUNTIME_DIR中编写?

我还在podman-github上创建了一个问题https://github.com/containers/podman/issues/16227

我已经能够使用以下命令设置所需的路径

rm -r ~/.local/share/containers
export XDG_RUNTIME_DIR=/var/tmp
podman build x

后续podman命令将使用"数据库"中的值,而不是$XDG_RUNTIME_DIR此外,podman似乎总是使用$TMPDIRenv var,因此每次运行podman 时可能需要更改它

最新更新