Podman初始化(init)在Windows 10上不起作用



更新:我通过使用命令启用wsl2解决了这个问题

wsl—设置默认版本2

在运行podman-v4.1.0.msi并在powershell中运行podmanmachineinit命令后,我得到了以下内容:

Copr repo for podman4 owned by rhcontainerbot                                            12 kB/s | 1.0 kB     00:00
Importing GPG key 0x2F6C3CBA:
Userid     : "rhcontainerbot_podman4 (None) <rhcontainerbot#podman4@copr.fedorahosted.org>"
Fingerprint: 79B5 022D 580F B1D6 B527 CB83 3BB2 485A 2F6C 3CBA
From       : https://download.copr.fedorainfracloud.org/results/rhcontainerbot/podman4/pubkey.gpg
Key imported successfully
error: sqlite failure: CREATE TABLE IF NOT EXISTS 'Packages' (hnum INTEGER PRIMARY KEY AUTOINCREMENT,blob BLOB NOT NULL): locking protocol
error: cannot open Packages index using sqlite - No such file or directory (2)
error: cannot open Packages database in /var/lib/rpm
Import of key(s) didn't help, wrong key(s)?
error: sqlite failure: CREATE TABLE IF NOT EXISTS 'Packages' (hnum INTEGER PRIMARY KEY AUTOINCREMENT,blob BLOB NOT NULL): locking protocol

运行了一段时间后,我终于得到了这个:

GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-35-x86_64
Public key for systemd-pam-249.12-3.fc35.x86_64.rpm is not installed. Failing package is: systemd-pam-249.12-3.fc35.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-35-x86_64
Public key for systemd-resolved-249.12-3.fc35.x86_64.rpm is not installed. Failing package is: systemd-resolved-249.12-3.fc35.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-35-x86_64
Public key for util-linux-2.37.4-1.fc35.x86_64.rpm is not installed. Failing package is: util-linux-2.37.4-1.fc35.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-35-x86_64
Public key for util-linux-core-2.37.4-1.fc35.x86_64.rpm is not installed. Failing package is: util-linux-core-2.37.4-1.fc35.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-35-x86_64
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED
Error: package installation on guest OS failed: exit status 1

试图启动podman我得到了这个:

bin/bash: line 1: /root/bootstrap: No such file or directory
Error: WSL bootstrap script failed: exit status 127

在此之前,它安装了其他东西,但在接近尾声时似乎遇到了麻烦。

podman机器列表给出以下输出:

NAME                     VM TYPE     CREATED         LAST UP         CPUS        MEMORY      DISK SIZE
podman-machine-default*  wsl         38 minutes ago  38 minutes ago  12          17.13GB     0B

Podman 4.1.0版

Windows Build 21H2 19044.1706

在将WSL2设为默认值后,它开始工作。

wsl --set-default-version 2

可能Hyper-V尚未启用。

打开运行对话框:按";窗口+R";。类型";appwiz.cpl";然后输入。单击";打开或关闭窗口功能";。期待着";Hyper-V";并打开它。

然后运行以下命令重试:

"podman机器rm";

"podman机器初始化";。

祝你好运。

第一次请以管理员模式运行podman桌面

相关内容

  • 没有找到相关文章

最新更新