commit_container
Creates a new local image from a running or stopped container's filesystem, capturing its process as the entrypoint and command for reuse.
Instructions
Create a new local image from a container's filesystem (Apple Container 1.6.0+).
Works on running and stopped containers. The image records the container's process
as its entrypoint and command, so pass entrypoint/args_override to run_container to
run something else. An unqualified reference such as "my-snapshot:v1" is stored
under docker.io/library/.
Example:
commit_container("myapp", "myapp-snapshot:v1")
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": {
"container_id": "<container_id>",
"reference": "<reference>"
},
"name": "commit_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reference | Yes | ||
| container_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |