错误:OCI 运行时错误:创建 systemd 单元 `libpod-scope* 时出错

错误:OCI 运行时错误:创建 systemd 单元 `libpod-scope* 时出错

知道如何修复此 OCI 运行时错误吗?当开发团队尝试在 podman 中构建图像时,他们会遇到此运行时错误。没有人能建议如何修复此错误。

./podman_build.sh build/debug/ 
Error: OCI runtime error: error creating systemd unit `libpod-d6a7455457fff69110bfd190235fa3300e66298b09311c636e14b7a6c91087f0.scope`: got `failed`

还有一些警告如下:

sellv@bnnhs:~/main$ ./podman_build.sh --refresh-image
WARN[0000] The cgroupv2 manager is set to systemd but there is no systemd user session available
WARN[0000] For using systemd, you may need to login using an user session
WARN[0000] Alternatively, you can enable lingering with: `loginctl enable-linger 70105893` (possibly as root)
WARN[0000] Falling back to --cgroup-manager=cgroupfs
WARN[0000] XDG_RUNTIME_DIR is pointing to a path which is not writable. Most likely podman will fail.
Error: error creating tmpdir: mkdir /run/user/70105893: permission denied
Provide Artifactory credentials

相关内容