Skip to main content
Glama

Docker MCP Server

run_container

Launch and configure Docker containers with specified image, name, ports, volumes, environment variables, and commands using the MCP protocol for streamlined container management.

Instructions

Run a Docker container

Input Schema

NameRequiredDescriptionDefault
commandNoCommand to run in the container
detachNoRun container in background
envNoEnvironment variables (e.g. ["KEY=value"])
imageYesDocker image to run
nameNoName for the container
portsNoPort mappings (e.g. ["8080:80"])
volumesNoVolume mappings (e.g. ["/host/path:/container/path"])

Input Schema (JSON Schema)

{ "properties": { "command": { "description": "Command to run in the container", "type": "string" }, "detach": { "description": "Run container in background", "type": "boolean" }, "env": { "description": "Environment variables (e.g. [\"KEY=value\"])", "items": { "type": "string" }, "type": "array" }, "image": { "description": "Docker image to run", "type": "string" }, "name": { "description": "Name for the container", "type": "string" }, "ports": { "description": "Port mappings (e.g. [\"8080:80\"])", "items": { "type": "string" }, "type": "array" }, "volumes": { "description": "Volume mappings (e.g. [\"/host/path:/container/path\"])", "items": { "type": "string" }, "type": "array" } }, "required": [ "image" ], "type": "object" }
Install Server

Other Tools from Docker MCP Server

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/suvarchal/docker-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server