v1

latestSwagger 2.02026-07-17108109409.0 KB
Image

Create a delta

Create a binary delta between two images.

post/deltas/create

Query parameters

srcstring required

Name of the image to use as a base for the delta. The name may include a tag or digest.

deststring required

Name of the image to use as a target for the delta. The name may include a tag or digest.

Response

The delta was created successfully

Idstring required

ID is the content-addressable ID of an image.

This identifier is a content-addressable digest calculated from the image's configuration (which includes the digests of layers used by the image).

Note that this digest differs from the RepoDigests below, which holds digests of image manifests that reference the image.

ParentIdstring required

ID of the parent image.

Depending on how the image was created, this field may be empty and is only set for images that were built/created locally. This field is empty if the image was pulled from an image registry.

RepoTagsstring[] required

List of image names/tags in the local image cache that reference this image.

Multiple image tags can refer to the same image, and this list may be empty if no tags reference the image, in which case the image is "untagged", in which case it can still be referenced by its ID.

RepoDigestsstring[] required

List of content-addressable digests of locally available image manifests that the image is referenced from. Multiple manifests can refer to the same image.

These digests are usually only available if the image was either pulled from a registry, or if the image was pushed to a registry, which is when the manifest is generated and its digest calculated.

Createdinteger required

Date and time at which the image was created as a Unix timestamp (number of seconds sinds EPOCH).

Sizeinteger required

Total size of the image including all layers it is composed of.

SharedSizeinteger required

Total size of image layers that are shared between this image and other images.

This size is not calculated by default. -1 indicates that the value has not been set / calculated.

VirtualSizeinteger

Total size of the image including all layers it is composed of.

Deprecated: this field is omitted in API v1.44, but kept for backward compatibility. Use Size instead.

Labelsobject required

User-defined key/value metadata.

Containersinteger required

Number of containers using this image. Includes both stopped and running containers.

This size is not calculated by default, and depends on which API endpoint is used. -1 indicates that the value has not been set / calculated.

Example response

{
  "Id": "sha256:ec3f0931a6e6b6855d76b2d7b0be30e81860baccd891b2e243280bf1cd8ad710",
  "RepoTags": [
    "example:1.0",
    "example:latest",
    "example:stable",
    "internal.registry.example.com:5000/example:1.0"
  ],
  "RepoDigests": [
    "example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb",
    "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"
  ],
  "Size": 172064416,
  "SharedSize": 1239828,
  "VirtualSize": 172064416,
  "Labels": {
    "com.example.some-label": "some-value",
    "com.example.some-other-label": "some-other-value"
  },
  "Containers": 2
}