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?

WSL2のpodmanでMCPサーバを実行するときのmcp_settings.jsonの書き方

0
Last updated at Posted at 2026-02-27

MCPサーバをWSL2上のpodmanで実行しようと思ったときの多少の考慮点です。

  • 使用したディストロ: almalinux-10
  • 使用したMCPサーバ: markitdown

MCP Hubに記載されている例

{
  "mcpServers": {
    "markitdown": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-v",
        "/local-directory:/local-directory",
        "mcp/markitdown"
      ]
    }
  }
}

podmanでの実例

{
  "mcpServers": {
    "markitdown": {
      "command": "podman",
      "args": [
        "run",
        "-i",
        "--rm",
        "-v",
        "/local-directory:/local-directory:Z",
        "docker.io/mcp/markitdown"
      ]
    }
  }
}

ポイント

  • コマンドはdockerではなくpodmanにする(podman-dockerをインストールしていたらdockerでも大丈夫)
  • ボリュームマウントの最後に:Zをつける。私の環境ではこれがないとマウントが出来なかった(SELinuxの関係)
  • イメージ名はdocker.io/をつける
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?