0
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?

podman + VSCode dev containerでエラー [Command not found 'podman']

Last updated at Posted at 2025-04-19

Command not found 'podman'

現象

上記記事を参考に環境構築していたところ、
開発コンテナーの部分でエラーが発生。

Screenshot 2025-04-19 at 17.30.57.jpg

設定でdockerコマンドに変わりpodmanを叩くようにしている。

{
    "dev.containers.dockerPath": "podman"
}

もちろんターミナルではpodmanは叩ける。

python-devenv $ podman --version
podman version 5.4.2

開発環境

- M1 Mac
    - OS: 15.4.1 (24E263)
- Podman Desktop
    - Version 1.18.0 (1.18.0)
- Visual Studio Code
    - Version: 1.99.3 (Universal)
    - Commit: 17baf841131aa23349f217ca7c570c76ee87b957

解決策

podmanへのフルパスを指定すると直った。

python-devenv $ which podman
/opt/podman/bin/podman
{
    "dev.containers.dockerPath": "/opt/podman/bin/podman"
}

なんでやねんって感じ。

0
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
0
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?