105 Commits

Author SHA1 Message Date
Paweł Gronowski
826b3f64b8 api/docs: Cut v1.55
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-06-12 18:13:47 +02:00
Sebastiaan van Stijn
6f484306ab Merge pull request #52651 from acouvreur/fix/container-update-blkio-device-throttle
daemon: support per-device blkio throttle in ContainerUpdate
2026-06-12 16:04:38 +02:00
Sebastiaan van Stijn
53ecd322ff Merge pull request #52828 from thaJeztah/sync_api
api/swagger: sync changes to versioned copies
2026-06-12 16:01:47 +02:00
Paweł Gronowski
dc97f25cbf daemon/router: Gate ContainerUpdate blkio device fields by API version
ContainerUpdate only starts applying per-device blkio settings in the
current API version.

The fields existed in the Go request type before that because it shares
`container.Resources` with other endpoints, but they were not documented
as supported for container update and older daemons ignored them.

Clear these fields when handling requests for older API versions so
clients pinned to those versions keep the previous behavior, while v1.55
clients can use the newly supported fields.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-06-12 15:52:31 +02:00
Sopho Merkviladze
0b2c3780be api: declare ImageAttestations platform and type as repeatable
Both query parameters are now collectionFormat: multi arrays in the
swagger so they can accept multiple values later without an API
version bump. The server still operates on a single platform and
rejects requests passing more than one; type is read directly as a
list of repeated values instead of a comma-separated string.

Signed-off-by: Sopho Merkviladze <smerkviladze@mirantis.com>
2026-06-12 16:20:52 +04:00
Sopho Merkviladze
a0b6dbc2fc api: add GET /images/{name}/attestations endpoint
Add a new Engine API endpoint that returns the in-toto attestation
statements attached to an image for a given platform. The endpoint
locates the attestation manifest(s) referencing the requested platform's
image manifest, enumerates the statement layers, and returns each
layer's OCI descriptor (including media type, digest, size, and
annotations) together with its in-toto predicate type.

Query parameters:
  - platform: JSON-encoded OCI platform; defaults to the daemon's host
    platform if omitted.
  - type: comma-separated list of in-toto predicate type URIs; if
    omitted, all statements are returned.
  - statement: boolean, defaults to false. When true, the daemon reads
    each matching statement blob and includes the verbatim in-toto JSON
    in the response. When false (or omitted), statement blobs are not
    read and the Statement field is absent from each entry.

The manifest-chain walk (locating the platform image manifest and its
associated attestation manifest) is delegated to policy-helpers'
image.ResolveSignatureChain so that moby and BuildKit agree on how to
interpret the attestation storage format. The statement-layer iteration
and blob reading is inlined: when statement bodies are requested it
fails fast on the first unreadable blob and reads matching blobs
eagerly into memory; otherwise statement-layer blobs are never read
from the content store.

The endpoint is implemented for the containerd image store. The legacy
graphdriver store returns errdefs.NotImplemented (HTTP 501).

Signed-off-by: Sopho Merkviladze <smerkviladze@mirantis.com>
2026-06-12 13:40:58 +04:00
Sebastiaan van Stijn
bff5b9cf84 api/swagger: sync swarm join endpoint to older docs versions
Syncs changes from 2ecaac9631
and d5f6bdb027 to older API
versions, in addition to formatting changes.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-06-11 15:38:04 +02:00
Sebastiaan van Stijn
8368bcd28f api/swagger: move position of ImageInspect.Identity
commit 6d133c5ec6 moved this field in
the swagger; move it back to align with older API versions.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-06-11 15:37:38 +02:00
Ashutosh Anand
2ecaac9631 docs: clarify swarm join required fields
Document that /swarm/join requires ListenAddr, RemoteAddrs, and JoinToken in the Engine API spec.

ListenAddr is already required by join validation, while a non-empty listen address without a port uses the default swarm listening port. This keeps the API docs aligned with current behavior without changing swarm runtime behavior.

Fixes #49159

Signed-off-by: Ashutosh Anand <ashutoshanand2560@gmail.com>
2026-06-05 10:11:41 +05:30
Sebastiaan van Stijn
179985cf89 Merge pull request #52358 from geekcoderr/52355-topology-swagger
api: align Topology swagger with Segments JSON shape
2026-04-19 02:28:58 +02:00
Sebastiaan van Stijn
dc48cea266 api/docs: cleanup changelog
Follow-up to ca69153e28 and
0d2d3f348d, which restored old API docs.

This patch aligns the formatting of older versions with the format we use now.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-04-16 13:46:49 +02:00
Nishant Maheshwari
5c80a6e826 api: align Topology in versioned OpenAPI specs with Segments JSON shape
Apply the same Topology schema fix as api/swagger.yaml to v1.42–v1.54
document snapshots so clients generating from pinned API versions see the
correct Segments map shape.

Signed-off-by: Nishant Maheshwari <mnishant222@gmail.com>
Made-with: Cursor
2026-04-16 01:26:25 +05:30
Sebastiaan van Stijn
3d5c9936a3 Merge pull request #52312 from thaJeztah/api_restore_history
api/docs: restore API docs and change-logs for API v1.0 - v1.23
2026-04-09 14:24:26 +02:00
Sebastiaan van Stijn
a2eaebb011 api/docs: lower deprecation heading to a h4
Prevent the heading to show up in the TOC on docs.docker.com

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-04-06 01:10:03 +02:00
Sebastiaan van Stijn
ca69153e28 api/docs: restore changelog for API v1.0 - v1.13
This reverts commit 1d5f479e01.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-04-05 15:53:20 +02:00
Sebastiaan van Stijn
1055b7a1a6 api/docs: restore API versions v1.0 - v1.13
This reverts commit d2382f7b96.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-04-05 15:53:19 +02:00
Sebastiaan van Stijn
0d2d3f348d api/docs: restore API versions v1.14 - v1.17
This reverts commit 68f9a45440.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-04-05 15:53:16 +02:00
Sebastiaan van Stijn
dc824e3d8d api/docs: restore API versions v1.18 - v1.23
This reverts commit d54be2ee6d.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-04-05 15:53:15 +02:00
Paweł Gronowski
2fa6029be4 network/connect: Support MacAddress
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-03-05 14:11:08 +01:00
chemodax
e04bd2649e Rename disk usage properties in v1.54.yamlBackport c07043e36f to api/docs/v1.54.yaml.
Signed-off-by: chemodax <53048645+chemodax@users.noreply.github.com>
2026-03-01 21:38:51 +01:00
chemodax
5272ef1422 Backport c07043e36f to api/docs/v1.53.yaml.
Signed-off-by: chemodax <53048645+chemodax@users.noreply.github.com>
2026-03-01 21:37:55 +01:00
chemodax
076100ddcc Backport c07043e36f to api/docs/v1.52.yaml.
Signed-off-by: chemodax <53048645+chemodax@users.noreply.github.com>
2026-03-01 21:36:56 +01:00
Paweł Gronowski
74ad89c189 api: Cut v1.54
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-02-27 19:34:41 +01:00
CrazyMax
6d133c5ec6 image: add opt-in identity support to image list API
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-02-27 16:35:31 +01:00
Sebastiaan van Stijn
320b010add api/docs: add "platform" param for GET /image/{name}/json (API v1.49-v1.53)
This parameter was added in 59169d0f97
(API v1.49, docker 28.5.1), but forgot to update the swagger definition.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-02-23 10:31:46 +01:00
Paweł Gronowski
4fa326fa85 api: Cut v1.53
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-01-26 19:00:50 +01:00
Sebastiaan van Stijn
bd660c390b api/docs: sync MountType to versioned swagger specs
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-01-19 16:01:58 +01:00
Tonis Tiigi
7745b7135f api: add swagger definitions for new Identity type
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-01-16 08:07:15 -08:00
Sebastiaan van Stijn
41d19f6644 api/docs: backport assorted fixes and enhancements to older api versions
This syncs the versioned swagger files with some fixes and enhancements
made in:

- 955897fe21
- 22345e3369
- 917d66d833
- 1fd2395cd3

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-01-06 22:37:50 +01:00
Nicolas De Loof
aef5d996ce use mime-type application/jsonl to align with openapi 3.2
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-12-17 11:37:48 +01:00
Sebastiaan van Stijn
b2d84a3ef5 Merge pull request #51732 from thaJeztah/sync_swagger_docs
api/docs: move ImageHistoryResponseItem to definitions (API v1.25-v1.52)
2025-12-16 13:50:34 +01:00
Paweł Gronowski
5d716f20a3 Merge pull request #51721 from vvoland/deprecate-grpc
api: deprecate /grpc and /session endpoints
2025-12-16 12:34:55 +00:00
Rob Murray
1e209e788b Continue to backfill empty PortBindings in API 1.53
- introduced by commit 0ca7ac3 ("daemon: backfill empty PBs
  slices for backward compat")

Signed-off-by: Rob Murray <rob.murray@docker.com>
2025-12-16 11:03:58 +00:00
Sebastiaan van Stijn
2cce7ff87f api/docs: move ImageHistoryResponseItem to definitions (API v1.25-v1.52)
Similar to caaa9c9bb5, but applied to
existing API versions, so that it's easier to compare differences
between versions.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-12-16 11:42:03 +01:00
Paweł Gronowski
f44b5abf0e api: deprecate /grpc and /session endpoints
The /grpc and /session endpoints are now deprecated as the Engine has
been upgraded to properly support HTTP/2 and h2c requests, making these
specialized endpoints unnecessary.

These endpoints will be removed in the next major API version to
complete the cleanup.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2025-12-15 18:44:22 +01:00
Paweł Gronowski
a0bd623959 api: remove docs/v1.53.yaml
The API is not cut yet

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2025-12-15 17:24:53 +01:00
Rob Murray
7c7a626e5d NRI: include in API Info response
Signed-off-by: Rob Murray <rob.murray@docker.com>
2025-12-15 10:36:05 +00:00
Rob Murray
f6b1488468 Bump API to v1.53
Signed-off-by: Rob Murray <rob.murray@docker.com>
2025-12-15 09:45:21 +00:00
Kai Harder
a0e5e0525b Improve description of tmpfs mode
I recently had a great time to find out why the tmpfs mode provided did not work
until I found out that the API does not expect octal values but decimal ones.

Therefore, this PR will hopefully clarify the logic and prevent user questions in the future

Signed-off-by: Kai Harder <kai.harder@sap.com>
2025-12-02 16:34:12 +01:00
Sebastiaan van Stijn
ed6d436d51 Merge pull request #51458 from thaJeztah/rm_deprecated_dockerversion
api/types/plugin: remove deprecated Config.DockerVersion
2025-11-10 18:28:56 +01:00
Sebastiaan van Stijn
e8f156110a api/types/plugin: remove deprecated Config.DockerVersion
This was deprecated in c4fda95bea, and
already omitted.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-11-10 18:11:45 +01:00
Sebastiaan van Stijn
34fb9de7f3 api/docs: remove links to docs.docker.com from changelog
The docker documentation website may not be publishing rendered versions
of the swagger for deprecated API versions, so let's remove these links
from the changelog.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-11-10 18:04:01 +01:00
Paweł Gronowski
f57da07056 Merge pull request #51454 from thaJeztah/api_volumes_no_pointer
api/types/volume: change ListResponse.Volumes to a non-pointer slice
2025-11-10 16:20:16 +01:00
Sebastiaan van Stijn
18000fe371 api/types/volume: change ListResponse.Volumes to a non-pointer slice
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-11-10 13:13:22 +01:00
Sebastiaan van Stijn
ed428234bd api: remove / internalize LegacyDiskUsage
These fields have been removed from the API specification, and the struct
was only needed to produce legacy responses (server), or to unmarshal
legacy responses in the client.

As the API module only provides API definitions for the current API version,
we should remove these legacy structs, and keep them internal to the daemon
and client.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-11-07 20:16:03 +01:00
Austin Vazquez
931c347b36 api/types: rename disk usage fields
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com>
2025-11-06 16:21:32 -06:00
Austin Vazquez
6881ae72c7 api/types: use regular slices for disk usage types
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com>
2025-11-05 22:05:47 -06:00
Austin Vazquez
fabdccbe10 api/types: move disk usage structs to per type packages
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com>
2025-11-05 11:20:15 -06:00
Austin Vazquez
a69abdd90d api/types/system: add type specific usage fields to DiskUsage
This change adds type specific fields to `GET /system/df` endpoint with high level information of disk usage. This change also introduces `verbose` query to the endpoint so that detailed information is by default excluded unless queried to reduce memory consumption. The previous top level `DiskUsage` fields (`Images`, `Containers`, `Volumes` and `BuildCache`) are now deprecated and kept for backwards compatibility.

Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com>
2025-11-03 16:34:26 -06:00
Sebastiaan van Stijn
0eba2989e0 api/types/registry: rename AuthenticateOKBody to AuthResponse
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-10-29 18:06:29 +01:00