docker_exec
Execute commands inside running Docker containers to run scripts, debug applications, or perform administrative tasks within container environments.
Instructions
Execute a command inside a running container
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| container | Yes | Container name or ID | |
| command | Yes | Command to execute | |
| workdir | No | Working directory inside container | |
| user | No | User to run command as | |
| env | No | Environment variables | |
| cwd | No | Working directory |
Input Schema (JSON Schema)
{
"properties": {
"command": {
"description": "Command to execute",
"type": "string"
},
"container": {
"description": "Container name or ID",
"type": "string"
},
"cwd": {
"description": "Working directory",
"type": "string"
},
"env": {
"additionalProperties": {
"type": "string"
},
"description": "Environment variables",
"type": "object"
},
"user": {
"description": "User to run command as",
"type": "string"
},
"workdir": {
"description": "Working directory inside container",
"type": "string"
}
},
"required": [
"container",
"command"
],
"type": "object"
}