← All procedures
docker.tag
Give an image another name. An image that had the name loses it
MCPCLI- Package
- @procedures/docker · README
- Path
["docker","tag"]- CLI
mark docker tag --source <string> --target <string>- MCP tool
docker.tag on the dev-tools server- As data
{"$proc":["docker","tag"],"input":{}}
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/docker/register"; // registers its procedures
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["docker","tag"], { source: "<source>", target: "<target>" });
console.log(JSON.stringify(result));From the command line
$ mark docker tag --source <string> --target <string>
As data, in a program
{
"$proc": ["docker", "tag"],
"input": { "source": "<source>", "target": "<target>" }
}Input
Output
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "The image, for example app:latest or an image ID"
},
"target": {
"type": "string",
"description": "The new name, for example registry.example.com/app:1.0. An image with this name loses it"
},
"cwd": {
"description": "Working directory",
"type": "string"
},
"timeout": {
"description": "Timeout in milliseconds",
"type": "number"
}
},
"required": [
"source",
"target"
]
},
"output": {
"type": "object",
"properties": {
"exitCode": {
"type": "number",
"description": "The exit code of docker (0 is success)"
},
"stdout": {
"type": "string",
"description": "The standard output of docker"
},
"stderr": {
"type": "string",
"description": "The standard error of docker, or the error message when docker did not start"
},
"success": {
"type": "boolean",
"description": "True when the exit code is 0"
},
"duration": {
"type": "number",
"description": "The time of the command, in milliseconds"
}
},
"required": [
"exitCode",
"stdout",
"stderr",
"success",
"duration"
],
"additionalProperties": {}
}
}