Docker MCP Server for Cloudflare Workers
Test Docker tools directly in your browser. Select a tool and provide inputs to see the results.
Create a free account to test Docker tools interactively. No credit card required.
docker_start_containerStart a stopped container. Args: - id: Container ID or name Returns: Confirmation of start.
docker_list_containersList Docker containers. Returns a list of containers. By default only running containers are shown. Args: - all: Show all containers (default shows just running) - limit: Maximum number of containers to return - format: Response format ('json' or 'markdown') Returns: List of containers with ID, names, image, status, state, and ports.
docker_inspect_containerGet detailed information about a container. Args: - id: Container ID or name - format: Response format ('json' or 'markdown') Returns: Detailed container configuration and state.
docker_create_containerCreate a new container. Args: - image: Image to use (required) - name: Container name - cmd: Command to run - env: Environment variables (array of KEY=VALUE) - ports: Port mappings (e.g., {"80/tcp": [{"HostPort": "8080"}]}) - volumes: Volume bindings (e.g., ["/host/path:/container/path"]) - workingDir: Working directory inside container - hostname: Container hostname - user: User to run as - tty: Allocate a TTY - labels: Container labels Returns: Created container ID and any warnings.
docker_stop_containerStop a running container. Args: - id: Container ID or name - timeout: Seconds to wait before killing (default: 10) Returns: Confirmation of stop.
docker_restart_containerRestart a container. Args: - id: Container ID or name - timeout: Seconds to wait before killing (default: 10) Returns: Confirmation of restart.
docker_kill_containerKill a running container (send signal). Args: - id: Container ID or name - signal: Signal to send (default: SIGKILL) Returns: Confirmation of kill.
docker_pause_containerPause a running container. Args: - id: Container ID or name Returns: Confirmation of pause.
docker_unpause_containerUnpause a paused container. Args: - id: Container ID or name Returns: Confirmation of unpause.
docker_remove_containerRemove a container. Args: - id: Container ID or name - force: Force removal of running container - removeVolumes: Remove associated volumes Returns: Confirmation of removal.
docker_rename_containerRename a container. Args: - id: Container ID or name - name: New name for the container Returns: Confirmation of rename.
docker_get_logsGet container logs. Args: - id: Container ID or name - tail: Number of lines to show from end (default: 100) - timestamps: Include timestamps Returns: Container log output.
docker_get_statsGet container resource usage statistics. Args: - id: Container ID or name - format: Response format ('json' or 'markdown') Returns: CPU, memory, network, and I/O statistics.
docker_get_topGet running processes in a container. Args: - id: Container ID or name - psArgs: Arguments to pass to ps (default: -ef) Returns: List of processes running in the container.
docker_get_changesGet filesystem changes in a container. Args: - id: Container ID or name Returns: List of changed files (0=Modified, 1=Added, 2=Deleted).
docker_wait_containerWait for a container to stop. Args: - id: Container ID or name Returns: Exit code and any error message.
docker_prune_containersRemove all stopped containers. Returns: List of deleted container IDs and space reclaimed.
docker_update_containerUpdate container resource limits. Args: - id: Container ID or name - cpuShares: CPU shares (relative weight) - memory: Memory limit in bytes - memorySwap: Total memory limit (memory + swap) - cpuPeriod: CPU CFS period - cpuQuota: CPU CFS quota - cpusetCpus: CPUs to use (e.g., "0-3" or "0,1") - cpusetMems: Memory nodes to use Returns: Warnings from the update.
docker_execExecute a command in a running container. This is a convenience tool that creates and starts an exec instance. Args: - containerId: Container ID or name - cmd: Command to execute (array of strings) - workingDir: Working directory inside container - user: User to run as - env: Environment variables (array of KEY=VALUE) - privileged: Run in privileged mode - tty: Allocate a TTY Returns: Command output.
docker_inspect_secretGet detailed information about a secret. Args: - id: Secret ID or name Returns: Secret metadata (not the secret data itself).
docker_create_execCreate an exec instance in a container. This creates an exec instance that can be started later. Args: - containerId: Container ID or name - cmd: Command to execute (array of strings) - workingDir: Working directory inside container - user: User to run as - env: Environment variables (array of KEY=VALUE) - privileged: Run in privileged mode - tty: Allocate a TTY - attachStdin: Attach stdin - attachStdout: Attach stdout - attachStderr: Attach stderr - detachKeys: Escape keys for detach Returns: Exec instance ID.
docker_start_execStart a previously created exec instance. Args: - id: Exec instance ID - detach: Detach from the exec - tty: Allocate a TTY Returns: Command output (if not detached).
docker_inspect_execGet information about an exec instance. Args: - id: Exec instance ID Returns: Exec instance details including running state and exit code.
docker_resize_execResize the TTY of an exec instance. Args: - id: Exec instance ID - height: TTY height - width: TTY width Returns: Confirmation of resize.
docker_hub_loginLogin to Docker Hub. Args: - username: Docker Hub username - password: Docker Hub password Returns: Authentication token.
docker_hub_list_reposList repositories in a Docker Hub namespace. Args: - namespace: Docker Hub namespace (username or organization) - page: Page number (default: 1) - pageSize: Items per page (default: 25) - format: Response format ('json' or 'markdown') Returns: List of repositories with name, description, stars, and pull count.
docker_hub_get_repoGet details of a Docker Hub repository. Args: - namespace: Docker Hub namespace - repository: Repository name - format: Response format ('json' or 'markdown') Returns: Repository details including description, stars, and pull count.
docker_hub_list_tagsList tags for a Docker Hub repository. Args: - namespace: Docker Hub namespace - repository: Repository name - page: Page number (default: 1) - pageSize: Items per page (default: 25) - format: Response format ('json' or 'markdown') Returns: List of tags with name, size, and last updated time.
docker_hub_get_tagGet details of a specific tag. Args: - namespace: Docker Hub namespace - repository: Repository name - tag: Tag name Returns: Tag details including images for each architecture.
docker_hub_delete_tagDelete a tag from a Docker Hub repository. Args: - namespace: Docker Hub namespace - repository: Repository name - tag: Tag name Returns: Confirmation of deletion.
docker_hub_list_webhooksList webhooks for a Docker Hub repository. Args: - namespace: Docker Hub namespace - repository: Repository name Returns: List of webhooks with name and URL.
docker_hub_create_webhookCreate a webhook for a Docker Hub repository. Args: - namespace: Docker Hub namespace - repository: Repository name - name: Webhook name - webhookUrl: URL to call when triggered Returns: Created webhook details.
docker_hub_delete_webhookDelete a webhook from a Docker Hub repository. Args: - namespace: Docker Hub namespace - repository: Repository name - webhookId: Webhook ID Returns: Confirmation of deletion.
docker_hub_build_settingsGet automated build settings for a repository. Args: - namespace: Docker Hub namespace - repository: Repository name Returns: Build settings including build tags and autotests configuration.
docker_hub_build_historyGet build history for a repository. Args: - namespace: Docker Hub namespace - repository: Repository name - page: Page number (default: 1) - pageSize: Items per page (default: 25) Returns: List of builds with status, tag, and timestamps.
docker_hub_trigger_buildTrigger an automated build for a repository. Args: - namespace: Docker Hub namespace - repository: Repository name - sourceType: Source type (Branch or Tag) - sourceName: Source name (branch or tag name) Returns: Confirmation of build trigger.
docker_list_imagesList Docker images. Args: - all: Show all images (default hides intermediate images) - dangling: Show only dangling images - format: Response format ('json' or 'markdown') Returns: List of images with ID, tags, size, and creation time.
docker_inspect_imageGet detailed information about an image. Args: - name: Image name or ID - format: Response format ('json' or 'markdown') Returns: Detailed image configuration and metadata.
docker_get_image_historyGet the history of an image (layers). Args: - name: Image name or ID Returns: List of image layers with creation info.
docker_pull_imagePull an image from a registry. Args: - image: Image name (e.g., "nginx", "ubuntu", "myregistry.com/myimage") - tag: Tag to pull (default: "latest") - username: Registry username (optional) - password: Registry password (optional) Returns: Pull progress and result.
docker_push_imagePush an image to a registry. Args: - name: Image name (e.g., "myregistry.com/myimage") - tag: Tag to push (optional) - username: Registry username - password: Registry password Returns: Push progress and result.
docker_tag_imageTag an image. Args: - name: Source image name or ID - repo: Target repository name - tag: Target tag (default: "latest") Returns: Confirmation of tagging.
docker_swarm_leaveLeave the swarm. Args: - force: Force leave even if this is the last manager Returns: Confirmation of leave.
docker_remove_imageRemove an image. Args: - name: Image name or ID - force: Force removal - noPrune: Don't delete untagged parents Returns: List of deleted/untagged layers.
docker_search_imagesSearch Docker Hub for images. Args: - term: Search term - limit: Maximum results (default: 25) - format: Response format ('json' or 'markdown') Returns: List of matching images from Docker Hub.
docker_prune_imagesRemove unused images. Args: - dangling: Only remove dangling images (default: true) Returns: List of deleted images and space reclaimed.
docker_list_networksList Docker networks. Args: - driver: Filter by driver (e.g., "bridge", "overlay") - scope: Filter by scope ("swarm", "global", "local") - format: Response format ('json' or 'markdown') Returns: List of networks with ID, name, driver, and scope.
docker_inspect_networkGet detailed information about a network. Args: - id: Network ID or name - format: Response format ('json' or 'markdown') Returns: Detailed network configuration including connected containers.
docker_create_networkCreate a new network. Args: - name: Network name (required) - driver: Network driver (default: "bridge") - internal: Restrict external access - attachable: Enable manual container attachment - enableIPv6: Enable IPv6 - subnet: Subnet in CIDR format (e.g., "172.28.0.0/16") - gateway: Gateway address - ipRange: IP range to allocate from - labels: Network labels Returns: Created network ID.
docker_remove_networkRemove a network. Args: - id: Network ID or name Returns: Confirmation of removal.
docker_connect_networkConnect a container to a network. Args: - networkId: Network ID or name - containerId: Container ID or name - ipv4Address: IPv4 address to assign - ipv6Address: IPv6 address to assign - aliases: Network aliases for the container Returns: Confirmation of connection.
docker_disconnect_networkDisconnect a container from a network. Args: - networkId: Network ID or name - containerId: Container ID or name - force: Force disconnection Returns: Confirmation of disconnection.
docker_prune_networksRemove all unused networks. Returns: List of deleted network IDs.
docker_list_pluginsList installed Docker plugins. Args: - enabled: Filter by enabled status - format: Response format ('json' or 'markdown') Returns: List of plugins with name, enabled status, and description.
docker_inspect_pluginGet detailed information about a plugin. Args: - name: Plugin name Returns: Detailed plugin configuration.
docker_plugin_privilegesGet privileges required by a plugin. Args: - remote: Plugin image reference Returns: List of privileges required by the plugin.
docker_swarm_unlock_keyGet the swarm unlock key. Returns: The unlock key for the swarm.
docker_swarm_unlockUnlock a locked swarm. Args: - unlockKey: The unlock key Returns: Confirmation of unlock.
docker_install_pluginInstall a plugin from a registry. Args: - remote: Plugin image reference (e.g., "vieux/sshfs:latest") - name: Local name for the plugin - grantAllPermissions: Grant all required permissions automatically Returns: Confirmation of installation.
docker_enable_pluginEnable a plugin. Args: - name: Plugin name - timeout: Timeout in seconds Returns: Confirmation of enable.
docker_disable_pluginDisable a plugin. Args: - name: Plugin name - force: Force disable Returns: Confirmation of disable.
docker_remove_pluginRemove a plugin. Args: - name: Plugin name - force: Force removal Returns: Confirmation of removal.
docker_upgrade_pluginUpgrade a plugin. Args: - name: Plugin name - remote: New plugin image reference - grantAllPermissions: Grant all required permissions automatically Returns: Confirmation of upgrade.
docker_configure_pluginConfigure a plugin. Args: - name: Plugin name - settings: Plugin settings (array of KEY=VALUE) Returns: Confirmation of configuration.
docker_list_secretsList Docker secrets (Swarm mode). Args: - format: Response format ('json' or 'markdown') Returns: List of secrets with ID and name.
docker_create_secretCreate a new secret. Args: - name: Secret name - data: Secret data (will be base64 encoded) - labels: Secret labels Returns: Created secret ID.
docker_remove_secretRemove a secret. Args: - id: Secret ID or name Returns: Confirmation of removal.
docker_list_configsList Docker configs (Swarm mode). Args: - format: Response format ('json' or 'markdown') Returns: List of configs with ID and name.
docker_inspect_configGet detailed information about a config. Args: - id: Config ID or name Returns: Config details including data.
docker_create_configCreate a new config. Args: - name: Config name - data: Config data (will be base64 encoded) - labels: Config labels Returns: Created config ID.
docker_remove_configRemove a config. Args: - id: Config ID or name Returns: Confirmation of removal.
docker_swarm_inspectGet information about the swarm. Returns: Swarm configuration and status.
docker_swarm_initInitialize a new swarm. Args: - listenAddr: Listen address (default: "0.0.0.0:2377") - advertiseAddr: Advertise address - dataPathAddr: Data path address - forceNewCluster: Force create a new cluster Returns: Node ID of the swarm manager.
docker_swarm_joinJoin an existing swarm. Args: - joinToken: Token to join the swarm (worker or manager) - remoteAddrs: Addresses of existing managers - listenAddr: Listen address (default: "0.0.0.0:2377") - advertiseAddr: Advertise address - dataPathAddr: Data path address Returns: Confirmation of join.
docker_list_nodesList swarm nodes. Args: - role: Filter by role (worker or manager) - format: Response format ('json' or 'markdown') Returns: List of swarm nodes.
docker_inspect_nodeGet detailed information about a node. Args: - id: Node ID - format: Response format ('json' or 'markdown') Returns: Detailed node information.
docker_remove_nodeRemove a node from the swarm. Args: - id: Node ID - force: Force removal Returns: Confirmation of removal.
docker_update_nodeUpdate a node's configuration. Args: - id: Node ID - version: Node version (for optimistic locking) - role: Node role (worker or manager) - availability: Node availability (active, pause, drain) - name: Node name - labels: Node labels Returns: Confirmation of update.
docker_list_servicesList swarm services. Args: - mode: Filter by mode (replicated or global) - format: Response format ('json' or 'markdown') Returns: List of swarm services.
docker_inspect_serviceGet detailed information about a service. Args: - id: Service ID or name - format: Response format ('json' or 'markdown') Returns: Detailed service configuration.
docker_create_serviceCreate a new swarm service. Args: - name: Service name - image: Image to use - replicas: Number of replicas (for replicated mode) - global: Run one task per node (global mode) - cmd: Command to run - env: Environment variables - labels: Service labels - publishedPorts: Ports to publish (array of {targetPort, publishedPort, protocol}) Returns: Created service ID.
docker_remove_serviceRemove a swarm service. Args: - id: Service ID or name Returns: Confirmation of removal.
docker_service_logsGet logs from a swarm service. Args: - id: Service ID or name - tail: Number of lines to show - timestamps: Include timestamps Returns: Service log output.
docker_list_tasksList swarm tasks. Args: - service: Filter by service ID - node: Filter by node ID - desiredState: Filter by desired state (running, shutdown, accepted) - format: Response format ('json' or 'markdown') Returns: List of tasks.
docker_inspect_taskGet detailed information about a task. Args: - id: Task ID Returns: Detailed task information.
docker_system_infoGet Docker system-wide information. Args: - format: Response format ('json' or 'markdown') Returns: System information including containers, images, kernel, OS, CPU, memory.
docker_versionGet Docker version information. Returns: Docker version, API version, Go version, OS, architecture.
docker_pingPing the Docker daemon. Returns: "OK" if the daemon is responsive.
docker_disk_usageGet Docker disk usage information. Args: - format: Response format ('json' or 'markdown') Returns: Disk usage for images, containers, volumes, and build cache.
docker_eventsGet Docker events. Args: - since: Unix timestamp to start from - until: Unix timestamp to end at - type: Filter by event type (container, image, volume, network, daemon, plugin, node, service, secret, config) - format: Response format ('json' or 'markdown') Returns: List of Docker events.
docker_authAuthenticate with a registry. Args: - username: Registry username - password: Registry password - serveraddress: Registry address (default: Docker Hub) Returns: Authentication status.
docker_list_volumesList Docker volumes. Args: - dangling: Filter by dangling status - driver: Filter by driver - format: Response format ('json' or 'markdown') Returns: List of volumes with name, driver, scope, and mountpoint.
docker_inspect_volumeGet detailed information about a volume. Args: - name: Volume name - format: Response format ('json' or 'markdown') Returns: Detailed volume configuration.
docker_create_volumeCreate a new volume. Args: - name: Volume name (optional, will be generated if not provided) - driver: Volume driver (default: "local") - driverOpts: Driver-specific options - labels: Volume labels Returns: Created volume details.
docker_remove_volumeRemove a volume. Args: - name: Volume name - force: Force removal even if in use Returns: Confirmation of removal.
docker_prune_volumesRemove all unused volumes. Returns: List of deleted volume names and space reclaimed.
docker_start_container{
"id": "example_id"
}docker_list_containers{
"all": true,
"limit": true,
"format": "example_format"
}docker_inspect_container{
"id": "example_id",
"format": "example_format"
}