Docker Image API

The Image API from Docker — 15 operation(s) for image.

GitHub OpenAPI

Operations 15

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /images/json List images on the Docker daemon · List Images #
Ask an LLM
“Which images are sitting on my Docker daemon right now?”
“Can I list only images that have no child images?”
Tell an agent
List all images on the daemon.
List images including intermediate layers, all set to {all}.
POST /build Build an image from a Dockerfile · Build an image #
Ask an LLM
“How do I build an image from a Dockerfile in a tar archive?”
“Can I build an image from a Git repository URL instead of a local Dockerfile?”
Tell an agent
Build an image from the Dockerfile in {remote}.
Build an image from the Dockerfile at {dockerfile} in the build context.
POST /build/prune Delete build cache · Delete builder cache #
Ask an LLM
“How do I clean up the builder cache to free disk space?”
“Can I keep a reserved amount of disk space when pruning build cache?”
Tell an agent destructive · confirm first
Prune the builder cache, keeping at least {reserved_space} bytes reserved.
Delete build cache until at least {min_free_space} bytes of disk space are free.
POST /images/create Pull or import an image · Create an image #
Ask an LLM
“How do I pull an image from a registry?”
“Can I import an image from a tarball or URL?”
Tell an agent
Pull the image {fromImage}.
Import the image from {fromSrc} into repository {repo}.
GET /images/{name}/json Inspect an image · Inspect an image #
Ask an LLM
“What are the details of a specific image on the daemon?”
“Can I see an image's manifests and platform variants?”
Tell an agent
Inspect image {name}.
Show image {name} with manifests set to {manifests}.
GET /images/{name}/history Show an image's layer history · Get the history of an image #
Ask an LLM
“Which Dockerfile instructions built up this image?”
“Can I see the parent layers of an image?”
Tell an agent
Show the history of image {name}.
List the parent layers of image {name} for platform {platform}.
POST /images/{name}/push Push an image to a registry · Push an image #
Ask an LLM
“How do I push an image to a private registry?”
“Can I push only one tag of an image?”
Tell an agent
Push image {name} to its registry.
Push tag {tag} of image {name}.
POST /images/{name}/tag Tag an image · Tag an image #
Ask an LLM
“How do I retag an image with a different repository name?”
“Can I overwrite an existing tag on an image?”
Tell an agent
Tag image {name} as {tag}.
Retag image {name} in repository {repo}.
DELETE /images/{name} Remove an image · Remove an image #
Ask an LLM
“How do I remove an image and its untagged parents?”
“Can I force remove an image that is still referenced by stopped containers?”
Tell an agent destructive · confirm first
Remove image {name}.
Force remove image {name} even if it is referenced by stopped containers.
GET /images/search Search Docker Hub for images · Search images #
Ask an LLM
“What images are available on Docker Hub for a given term?”
“Can I find official images with a minimum number of stars?”
Tell an agent
Search Docker Hub for images matching {term}.
Find official images on Docker Hub with at least {stars} stars.
POST /images/prune Delete unused images · Delete unused images #
Ask an LLM
“How do I clean up dangling images?”
“Can I remove all unused images at once?”
Tell an agent destructive · confirm first
Prune unused images.
Remove dangling images only.
POST /commit Create an image from a container · Create a new image from a container #
Ask an LLM
“How do I save the state of a running container as a new image?”
“Can I set a commit message and author when committing a container?”
Tell an agent
Commit container {container} to a new image.
Commit container {container} as image {repo}:{tag} with message {comment}.
GET /images/{name}/get Export an image as a tarball · Export an image #
Ask an LLM
“How do I export a single image and its parents to a tarball?”
“Can I export an image for a specific platform?”
Tell an agent
Export image {name} as a tarball.
Export image {name} for platform {platform} as a tarball.
GET /images/get Export several images as a tarball · Export several images #
Ask an LLM
“How do I export multiple images and their parents to one tarball?”
“Can I export several image repositories at once?”
Tell an agent
Export images {names} as a single tarball.
Export the images {names} for platform {platform}.
POST /images/load Import images from a tarball · Import images #
Ask an LLM
“How do I load images back into the daemon from a tarball?”
“Can I load images for a specific platform?”
Tell an agent
Load images from the tarball into the daemon.
Load images from the tarball for platform {platform}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/docker:docker-image-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

docker-image-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Docker Engine Image API
  version: '1.54'
  x-logo:
    url: https://docs.docker.com/assets/images/logo-docker-main.png
  description: The Engine API is an HTTP API served by Docker Engine.
servers:
- url: /v1.54
tags:


# --- truncated at 32 KB (82 KB total) ---
# Full source: https://artifacts.apis.io/docker/openapi/docker-image-api-openapi.yml