Securing the Docker MCP Catalog: Commit Pinning, Agentic Auditing, and Publisher Trust Levels
Docker's MCP Registry now pins every Docker-built MCP server to a specific Git commit, enforced in CI and propagated to the org.opencontainers.image.revision label, so builds are deterministic and verifiable with docker inspect or cosign. A nightly workflow bumps pins via per-server PRs, and each incoming change gets an agentic security review by Claude Code and OpenAI Codex. The reviewers are treated as untrusted: they run in a Docker Compose stack with read-only code mounts, no Internet access, a fixed-file output directory, and a reverse proxy that injects API keys so secrets never enter the container. Risk labels map to GitHub status checks (critical blocks merge), and the catalog adds publisher trust indicators distinguishing known publishers from community servers.
Related posts
- Defending Your Software Supply Chain: What Every Engineering Team Should Do Now
Docker mediumAdeptRecent supply chain compromises (the axios npm hijack attributed to Lazarus Group, the TeamPCP campaign via Trivy's GitHub Action, Shai-Hulud, GlassWorm) share one root cause: implicit trust in mutable tags, broad long-lived tokens and unsandboxed runners. The recommended defenses start with pinning Actions to commit SHAs and images to digests, using lock files with npm ci, and applying 3-day cooldowns on new dependency versions, since most malicious releases live only hours. Further layers are short-lived scoped CI credentials, avoiding pull_request_target, artifact proxies and build-time SBOMs, plus canary tokens and credential cleanup on developer machines. AI coding agents should run in microVM sandboxes and MCP servers should be governed. Many recommendations are paired with Docker products such as Hardened Images, Scout, Sandboxes and MCP Gateway.
- Securing Model Context Protocol: Safer Agentic AI with Containers
Docker easyNoviceRunning MCP servers via npx on the host with plaintext environment-variable secrets leaves agentic tooling exposed to supply-chain tampering, credential leakage, and attacks such as rug pulls, tool shadowing, and tool poisoning. Containers address part of this through isolation, reproducibility, and verifiable provenance. They should be paired with scoped secret injection, a single MCP Gateway that screens all server-to-client traffic, and separate policies for which servers are trusted versus which a given agent needs. Tool annotations like readOnlyHint and destructiveHint can be enforced at container runtime, and Docker's MCP Catalog and Toolkit package these ideas behind one socat-over-STDIO connection.
- Docker MCP Gateway: Open Source, Secure Infrastructure for Agentic AI
Docker mediumAdeptDocker's MCP Gateway, now open source, is a single enforcement point between AI agents and the MCP servers they call, aggregating multiple containerized servers behind one interface and integrating with Docker Compose. The `docker mcp` CLI covers browsing the catalog, storing secrets such as API keys, writing per-server host config, and running gateways that expose chosen servers and a restricted set of tools over transports like SSE. Security interceptors can be switched on at startup to verify container image signatures, block secret-like content in payloads, and log tool calls. It ships in Docker Desktop and works with any community edition of Docker.
- Your Org, Your Tools: Building a Custom MCP Catalog
Docker mediumAdeptA private MCP catalog lets an organization restrict which MCP servers developers and AI assistants can reach. You build one by forking Docker's read-only docker-mcp catalog, copying only approved server entries into a new catalog, and re-hosting their images in your own registry such as GHCR. You can either retag pinned Docker Hub digests or rebuild multi-arch images from the source repos with buildx when Docker Hub is blocked. MCP Gateway then serves the catalog through one stdio/SSE endpoint per client, which cuts configuration from X×Y entries to Y. The post closes with an example VS Code mcp.json entry.
- The Trust Layer: Securing Agentic AI with Docker AI Governance
Docker easyNoviceDocker AI Governance secures AI agents by enforcing controls around their runtime rather than trusting model behavior, across three layers: Sandbox Policies, MCP Tool Governance, and Audit + Visibility. Sandbox policies constrain each agent's microVM environment, with network and filesystem rules enforced at the proxy and mount layers. MCP Gateway requests are denied by default unless a Cedar policy permits them, and policies can require confirmation for specific tool calls. Structured audit records of allow/deny decisions can feed SIEM workflows, and Docker Hardened Images, with signed SBOMs, VEX and SLSA Level 3 provenance, address the supply-chain side.