Docker service create
docker_service_createCreate a Docker Swarm service from a specified image and service name, with optional ports, replicas, and target context for multi-context deployments.
Instructions
Create a service (real services.create via :meth:create_service).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"service_name": "<service_name>",
"image": "<image>"
},
"name": "docker_service_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | ||
| ports | No | ||
| context | No | Named context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted. | |
| replicas | No | ||
| service_name | Yes |