1

我有 docker,但它与我的 Fedora 31 有冲突,我不得不删除 docker:

dnf 删除 docker-ce

rm -rf /var/lib/docker

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

dnf 安装播客

我的系统上安装了 docker 和 postman。所以,当使用命令时:

podman pull fedora: 最新

出现此日志,这似乎是某种冲突

    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 一起删除。

4

1 回答 1

2

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

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

为用户设置其他 ID 后,您需要运行podman system migrate以重新创建用户命名空间

于 2020-04-22T20:40:41.217 回答