我第一次尝试使用podmanpodman machine (在 Mac OS 下使用 podman ,但这可能无关紧要)。当我尝试启动 busybox 图像作为测试时,如简介中所述:
podman run -it docker.io/library/busybox
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
Error: failed to parse "X-Registry-Auth" header for /v3.3.1/libpod/images/pull?alltags=false&arch=&authfile=&os=&password=&policy=missing&quiet=false&reference=docker.io%2Flibrary%2Fbusybox&username=&variant=: error storing credentials in temporary auth file (server: "https://index.docker.io/v1/", user: ""): key https://index.docker.io/v1/ contains http[s]:// prefix
Run Code Online (Sandbox Code Playgroud)
(podman版本3.3.1)
kol*_*len 11
原因是我有~/.docker/config.jsonDocker Desktop 创建的文件。docker.io 注册表的条目为空,没有凭据,这导致了此错误。
由于该文件没有有价值的配置(主要是默认值),因此我删除了它,问题不再出现。
% podman run -it docker.io/library/busybox
Trying to pull docker.io/library/busybox:latest...
Getting image source signatures
Copying blob sha256:8ec32b265e94aafb0d43ab71f1d8f786122c19afb37d25532aea169f414f8881
Copying blob sha256:8ec32b265e94aafb0d43ab71f1d8f786122c19afb37d25532aea169f414f8881
Copying config sha256:42b97d3c2ae95232263a04324aaf656dc80e7792dee6629a9eff276cdfb806c0
Writing manifest to image destination
Storing signatures
/ #
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1548 次 |
| 最近记录: |