Aspire使用podman非默认虚拟机名称报错
Aspire创建容器时报错
Writing manifest to image destination
390ea575cb4859f529895dde8b6ffa30a9e2c3ad63543f60e1f22194fc7b8c8a
Could not copy files to the container
查看虚拟机列表(注意虚拟机名称后面是否有星号)
podman machine list
配置默认虚拟机
podman system connection default 虚拟机名称
重新运行Aspire
找到容器运行时 ‘podman’,但它似乎运行不正常。确保 Podman 正在运行。
The error from the container runtime check was: Cannot connect to Podman. Please verify your connection to the Linux system using `podman system connection list`, or try `podman machine init` and `podman machine start` to manage a new Linux VM
Error: unable to connect to Podman socket: failed to connect: dial tcp 127.0.0.1:19040: connectex: No connection could be made because the target machine actively refused it.
貌似不行, 重新创建虚拟机,并迁移至其他磁盘
podman machine init podman-machine-default
停止虚拟机
podman machine stop podman-machine-default
镜像导出
wsl --export podman-machine-default D:\PodmanVM\podman-disk.tar
删除原实例
wsl --unregister podman-machine-default
重新导入
`# 格式:wsl --import <实例名> <安装位置> <导出文件路径> --version 2
wsl --import podman-machine-default D:\PodmanVM\Data D:\PodmanVM\podman-disk.tar --version 2`

浙公网安备 33010602011771号