gpt4 book ai didi

docker - Podman无法拉图像

转载 作者:行者123 更新时间:2023-12-02 19:00:37 30 4
gpt4 key购买 nike

我有docker,但是与Fedora 31冲突,因此我必须删除docker:

dnf remove docker-ce

rm -rf /var/lib/docker


因为Podman更适合与他合作。但是因此在运行之后

dnf install podman


我的系统上安装了docker和postman。因此,使用命令时:

podman pull fedora:latest


出现此日志,那里似乎存在某种冲突
    Trying to pull docker.io/library/fedora:latest...
Getting image source signatures
Copying blob 5c1b9e8d7bf7 done
Copying config 536f3995ad done
Writing manifest to image destination
Storing signatures
Error processing tar file(exit status 1): there might not be enough IDs available in the namespace (requested 192:192 for /run/systemd/netif): lchown /run/systemd/netif: invalid argument
Trying to pull registry.fedoraproject.org/fedora:latest...
Getting image source signatures
Copying blob 00c5bb959822 done
Copying config 8c2e0da7c4 done
Writing manifest to image destination
Storing signatures
Error processing tar file(exit status 1): there might not be enough IDs available in the namespace (requested 0:12 for /var/spool/mail): lchown /var/spool/mail: invalid argument
Trying to pull registry.access.redhat.com/fedora:latest...
name unknown: Repo not found
Trying to pull registry.centos.org/fedora:latest...
manifest unknown: manifest unknown
Trying to pull quay.io/fedora:latest...
error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
Error: error pulling image "fedora:latest": unable to pull fedora:latest: 5 errors occurred:
* Error committing the finished image: error adding layer with blob "sha256:5c1b9e8d7bf7b758fa84807a6bce45e4af333e1ddd566b5972550b6fcfbed9b8": Error processing tar file(exit status 1): there might not be enough IDs available in the namespace (requested 192:192 for /run/systemd/netif): lchown /run/systemd/netif: invalid argument
* Error committing the finished image: error adding layer with blob "sha256:00c5bb959822a02c8bce18fe3ff0193c39ff19c4c25c59b3638677e87d1ddb36": Error processing tar file(exit status 1): there might not be enough IDs available in the namespace (requested 0:12 for /var/spool/mail): lchown /var/spool/mail: invalid argument
* Error initializing source docker://registry.access.redhat.com/fedora:latest: Error reading manifest latest in registry.access.redhat.com/fedora: name unknown: Repo not found
* Error initializing source docker://registry.centos.org/fedora:latest: Error reading manifest latest in registry.centos.org/fedora: manifest unknown: manifest unknown
* Error initializing source docker://quay.io/fedora:latest: Error reading manifest latest in quay.io/fedora: error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
我试图删除docker,但bash连同podman一起将其删除。

最佳答案

您正在使用无根用户(以非根用户身份运行容器),但是您的用户似乎没有足够的附加ID。

您需要确保为用户分配了足够的ID,请查看subuid(5)subgid(5)以了解如何配置它

为用户设置其他ID后,需要运行podman system migrate来重新创建用户 namespace

关于docker - Podman无法拉图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60706732/

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