HackerTrans
TopNewTrendsCommentsPastAskShowJobs

Claude Code's MCP config can silently orphan Docker containers(futuresearch.ai)

8 points·by rgambee·4개월 전·2 comments
futuresearch.ai
Claude Code's MCP config can silently orphan Docker containers

https://futuresearch.ai/blog/mcp-leaks-docker-containers/

2 comments

Bullhorn9268·4개월 전
So, is there a way of somehow cleaning up those docker containers, e.g. when uv version is not available?
rgambee·4개월 전
You can add a hook to your Claude Code settings to find and stop Docker containers. But it's risky since it might stop containers being used by another CC session.

Another option is to manually clean up Docker containers periodically, for instance by searching for all containers using a particular image:

    docker ps --filter ancestor=crystaldba/postgres-mcp