5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Docker MCP GatewayはOrbStackでも使えるのか?

Posted at

概要

Docker MCP GatewayはDocker Desktopで使えるので、
OrbStackでも同じように使えるか実験しました。
おま環かもしれないですが一応共有しておきます。

環境

  • M1 mac
  • OrbStackインストール済み
  • Docker Desktopインストール済み (ただし、停止中)

結論

ダメでした。Docker Desktopが起動してないと使えないようです

試してみたこと

DockerコンテキストでOrbstackが使われていることを確認

~ % docker context list

NAME            DESCRIPTION                               DOCKER ENDPOINT                                           ERROR

default         Current DOCKER_HOST based configuration   unix:///var/run/docker.sock                               

desktop-linux   Docker Desktop                            unix:///Users/${USER}/.docker/run/docker.sock     

orbstack *      OrbStack                                  unix:///Users/${USER}/.orbstack/run/docker.sock

インストール段階

curl -LO https://github.com/docker/mcp-gateway/releases/download/v0.9.8/docker-mcp-linux-arm64.tar.gz
tar zxvf docker-mcp-linux-arm64.tar.gz
mv ddocker-mcp ~/.docker/cli-plugins
chmod +x ~/.docker/cli-plugins
docker mcp --help

フォーマットエラーが出た

Invalid Plugins:

  mcp         failed to fetch metadata: fork/exec /Users/${USER}/.docker/cli-plugins/docker-mcp: exec format error

仕方ないので公式リポジトリの Install as Docker CLI Plugin でやってみる

git clone https://github.com/docker/mcp-gateway.git
cd mcp-gateway
make docker-mcp

うまく行った

~/mcp-gateway % docker mcp --help

Docker MCP Toolkit's CLI - Manage your MCP servers and clients.

  

Usage: docker mcp [OPTIONS]

  

Flags:

  -v, --version   Print version information and quit

  

Available Commands:

  catalog     Manage the catalog

  client      Manage MCP clients

  config      Manage the configuration

  gateway     Manage the MCP Server gateway

  policy      Manage secret policies

  secret      Manage secrets

  server      Manage servers

  tools       List/count/call MCP tools

  version     Show the version information

動作確認

~/mcp-gateway % docker mcp server enable github-official

Docker Desktop is not running

😭

5
1
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
5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?