← All procedures

docker.images

List images

MCPCLI
Package
@procedures/docker · README
Path
["docker","images"]
CLI
mark docker images
MCP tool
docker.images on the dev-tools server
As data
{"$proc":["docker","images"],"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","images"], {});
console.log(JSON.stringify(result));

From the command line

$ mark docker images

As data, in a program

{ "$proc": ["docker", "images"], "input": {} }

Input

FieldTypeRequiredDefaultDescription
repositorystringnoOnly the images of this repository, for example nginx or nginx:1.27
allbooleannoAlso the intermediate images
filterstringnoA filter of docker, for example label=app or dangling=true
formatstringnoA Go template or json for the output (--format)
cwdstringnoWorking directory
timeoutnumbernoTimeout in milliseconds

Output

FieldTypeRequiredDefaultDescription
exitCodenumberyesThe exit code of docker (0 is success)
stdoutstringyesThe standard output of docker
stderrstringyesThe standard error of docker, or the error message when docker did not start
successbooleanyesTrue when the exit code is 0
durationnumberyesThe time of the command, in milliseconds
JSON Schemas
{
  "input": {
    "type": "object",
    "properties": {
      "repository": {
        "description": "Only the images of this repository, for example nginx or nginx:1.27",
        "type": "string"
      },
      "all": {
        "description": "Also the intermediate images",
        "type": "boolean"
      },
      "filter": {
        "description": "A filter of docker, for example label=app or dangling=true",
        "type": "string"
      },
      "format": {
        "description": "A Go template or json for the output (--format)",
        "type": "string"
      },
      "cwd": {
        "description": "Working directory",
        "type": "string"
      },
      "timeout": {
        "description": "Timeout in milliseconds",
        "type": "number"
      }
    }
  },
  "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": {}
  }
}