2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Windows版Podman5.0の仕様変更でハマった話

Last updated at Posted at 2024-04-03

Windows版Podman5.0の仕様変更でハマった話

scoop updateでPodmanをv5.0.1にアップデートした直後,Machineが起動できなくなった.

❯ podman machine start
Error: unable to load machine config file: "json: cannot unmarshal string into Go struct field MachineConfig.ImagePath of type define.VMFile"

原因

Podman v4.x-v5.x間で設定ファイル(~\.config\containers\podman\machine\wsl\podman-machine-default.json)の互換性がなくなったことが原因だった.

破壊的変更の一覧

解決策

公式ブログに記載されている通り,imageをすべてバックアップした上でmachineを作り直す.

rm .\.config\containers\podman\machine\wsl\podman-machine-default.json
wsl --unregister podman-machine-default

podman machine reset
podman machine init --now

教訓

パッチノートはちゃんと読もう

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?