gpt4 book ai didi

containers - 在 Ubuntu 20.04 中运行 podman 的问题

转载 作者:行者123 更新时间:2023-12-05 03:45:31 29 4
gpt4 key购买 nike

不同的问题,主要与用户命名空间的数量有关。

尝试运行预构建的图像会产生:

podman run --rm -it -p8080:8080 --env LOGSTASH_CONF_STRING=$LOGSTASH_CONF_STRING --name logstash bitnami/logstash:latest 
Completed short name "bitnami/logstash" with unqualified-search registries (origin: /etc/containers/registries.conf)
Trying to pull docker.io/bitnami/logstash:latest...
Getting image source signatures
# layers
Writing manifest to image destination
Storing signatures
Error processing tar file(exit status 1): potentially insufficient UIDs or GIDs available in user namespace (requested 0:4 for /var/log/apt/term.log): Check /etc/subuid and /etc/subgid: lchown /var/log/apt/term.log: invalid argument
Trying to pull quay.io/bitnami/logstash:latest...
Getting image source signatures
# layers...
Storing signatures
Error processing tar file(exit status 1): potentially insufficient UIDs or GIDs available in user namespace (requested 0:4 for /var/log/apt/term.log): Check /etc/subuid and /etc/subgid: lchown /var/log/apt/term.log: invalid argument
Error: 2 errors occurred while pulling:
* Error committing the finished image: error adding layer with blob "sha256:8a5e287f7d41a454c717077151d24db164054831d7cd1399ee81ab2dfba4bcb2": Error processing tar file(exit status 1): potentially insufficient UIDs or GIDs available in user namespace (requested 0:4 for /var/log/apt/term.log): Check /etc/subuid and /etc/subgid: lchown /var/log/apt/term.log: invalid argument
* Error committing the finished image: error adding layer with blob "sha256:8a5e287f7d41a454c717077151d24db164054831d7cd1399ee81ab2dfba4bcb2": Error processing tar file(exit status 1): potentially insufficient UIDs or GIDs available in user namespace (requested 0:4 for /var/log/apt/term.log): Check /etc/subuid and /etc/subgid: lchown /var/log/apt/term.log: invalid argument

所以我真的不能运行这个东西。然后尝试运行一个本地构建的容器来创建我得到的用户:

Error: OCI runtime error: container_linux.go:370: starting container process caused: setup user: invalid argument

配置已设置subuid

jmerelo:100000:65536

虽然

podman unshare cat /proc/self/uid_map
0 1000 1

所以一定有什么东西是我遗漏的,或者我应该在这里重新开始。即使我再次登录,它仍然是相同的结果。所以一定是我在这里做错了什么。

最佳答案

通过关注 this 解决了同样的问题:

rm -rf ~/.config/containers ~/.local/share/containers
podman system migrate

关于containers - 在 Ubuntu 20.04 中运行 podman 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65775075/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com