원클릭으로
docker-context-management
Manage Docker contexts for multi-host and remote Docker engine workflows
메뉴
Manage Docker contexts for multi-host and remote Docker engine workflows
Debug running containers with log analysis, shell access, state inspection, and network diagnostics.
Multi-stage pipelines, sidecar patterns, healthchecks, init containers, signal handling, and graceful shutdown.
Use Docker in CI/CD pipelines with GitHub Actions, multi-platform builds, registry push, and layer caching strategies.
Write, debug, and optimize docker-compose.yml files with service definitions, networking, volumes, and healthchecks.
Set up development environments with Docker including hot reload, dev containers, bind mounts, and database containers.
Docker Content Trust - image signing, verification, key management, and CI/CD signing pipelines
| name | docker-context-management |
| description | Manage Docker contexts for multi-host and remote Docker engine workflows |
| standards-version | 1.10.0 |
Manage Docker contexts to connect to remote Docker hosts, switch between environments (dev/staging/prod), and orchestrate multi-host workflows.
flowchart TD
A[Check active context] -->|docker_contextShow| B{Need different host?}
B -->|No| C[Use current context]
B -->|Yes| D{Context exists?}
D -->|Yes| E[Switch context]
D -->|No| F[Create context]
F -->|ssh:// or tcp://| E
E -->|docker_contextUse| G[Verify connection]
G -->|docker_systemInfo| H{Connected?}
H -->|Yes| I[Run commands on remote host]
H -->|No| J[Check credentials / firewall]
J --> F
I --> K[Switch back to default when done]
Activate when the user:
docker_contextShow to check the active context and docker_contextLs to see all configured contexts.docker_contextCreate to add a new context or docker_contextUse to switch to an existing one.docker_systemInfo or docker_listContainers to confirm the connection works.docker_contextRm to keep the configuration tidy.docker context create, docker context ls, docker context inspect, docker context use, docker context show, docker context rmssh://user@hostname, tcp://hostname:2376, unix:///var/run/docker.sock~/.docker/contexts/User: "I need to deploy to our staging server at staging.example.com"
Assistant: First, let me check your current Docker contexts.
docker_contextLs to list existing contextsdocker_contextCreate with ssh://deploy@staging.example.comdocker_contextUse to switch to the new staging contextdocker_systemInfo to verify the connection| Tool | When to Use |
|---|---|
docker_contextCreate | Setting up a new remote Docker host connection |
docker_contextLs | Listing all configured contexts and their endpoints |
docker_contextInspect | Viewing detailed context configuration (TLS certs, endpoint) |
docker_contextRm | Removing outdated or unused contexts |
docker_contextUse | Switching the active Docker context |
docker_contextShow | Checking which context is currently active |
docker_login | Authenticating to a registry on the remote host |
docker_logout | Logging out from a registry |
ssh:// contexts require key-based auth or ssh-agent. Password prompts will hang in non-interactive MCP calls.tcp:// with TLS, ensure the host certificate matches the endpoint hostname.default to avoid accidentally running commands on the remote host.docker_contextUse.docker-security skill - for TLS and credential best practicesdocker-ci-cd skill - for using contexts in CI/CD pipelinesdocker-secrets rule - ensure registry credentials are not hardcoded