Docker Engine API
Docker provides an API for interacting with the Docker daemon (called the Docker Engine API), as well as SDKs for Go and Python. The SDKs allow you to efficiently build and scale Docker apps and solutions. If Go or Python don't work for you, you can use the Docker Engine API directly.
For information about Docker Engine SDKs, see Develop with Docker Engine SDKs.
The Docker Engine API is a RESTful API accessed by an HTTP client such as wget or
curl, or the HTTP library which is part of most modern programming languages.
View the API reference
You can view the reference for the latest version of the API or choose a specific version.
Versioned API and SDK
The version of the Docker Engine API you should use depends upon the version of your Docker daemon and Docker client.
A given version of the Docker Engine SDK supports a specific version of the Docker Engine API, as well as all earlier versions. If breaking changes occur, they are documented prominently.
NoteThe Docker daemon and client don't necessarily need to be the same version at all times. However, keep the following in mind.
If the daemon is newer than the client, the client doesn't know about new features or deprecated API endpoints in the daemon.
If the client is newer than the daemon, the client can request API endpoints that the daemon doesn't know about.
A new version of the API is released when new features are added. The Docker API is backward-compatible, so you don't need to update code that uses the API unless you need to take advantage of new features.
To see the highest and lowest version of the API your Docker daemon and client
support, use docker version:
$ docker version
Client: Docker Engine - Community
Version: 29.4.0
API version: 1.54
Go version: go1.26.1
Git commit: 9d7ad9f
Built: Tue Apr 7 08:34:32 2026
OS/Arch: darwin/arm64
Context: desktop-linux
Server: Docker Engine - Community
Engine:
Version: 29.4.0
API version: 1.54 (minimum version 1.40)
Go version: go1.26.1
Git commit: daa0cb7
Built: Tue Apr 7 08:36:25 2026
OS/Arch: linux/arm64
...
You can specify the API version to use in any of the following ways:
When using the SDK, use the latest version. At a minimum, use the version that incorporates the API version with the features you need.
When using
curldirectly, specify the version as the first part of the URL. For instance, if the endpoint is/containers/you can use/v1.54/containers/.To force the Docker CLI or the Docker Engine SDKs to use an older version of the API than the version reported by
docker version, set the environment variableDOCKER_API_VERSIONto the correct version. This works on Linux, Windows, and macOS clients.$ DOCKER_API_VERSION=1.53While the environment variable is set, that version of the API is used, even if the Docker daemon supports a newer version. This environment variable disables API version negotiation, so you should only use it if you must use a specific version of the API, or for debugging purposes.
The Docker Go SDK allows you to enable API version negotiation, automatically selects an API version that's supported by both the client and the Docker Engine that's in use.
For the SDKs, you can also specify the API version programmatically as a parameter to the
clientobject. See the Go constructor or the Python SDK documentation forclient.
Minimum API version
The Docker Engine API server and client support API-version negotiation. If a client connects to an older version of the Docker Engine, it negotiates the highest version of the API supported by both the client and daemon, downgrading to an older version of the API if necessary.
When downgrading to an older API version, features introduced in later API versions are disabled, and API requests and responses are adjusted for the API version negotiated.
API version negotiation allows tools that have not been upgraded yet to the latest API version specification to communicate with newer Docker Engines (and vice versa), but compatibility is "best effort"; while Docker strives to provide full compatibility, some functionality may not be available.
API version matrix
| Docker version | Maximum API version | Minimum API version | Change log |
|---|---|---|---|
| 29.4 | 1.54 | 1.40 | changes |
| 29.3 | 1.54 | 1.40 | changes |
| 29.2 | 1.53 | 1.44 | changes |
| 29.1 | 1.52 | 1.44 | changes |
| 29.0 | 1.52 | 1.44 | changes |
| 28.5 | 1.51 | 1.24 | changes |
| 28.4 | 1.51 | 1.24 | changes |
| 28.3 | 1.51 | 1.24 | changes |
| 28.2 | 1.50 | 1.24 | changes |
| 28.1 | 1.49 | 1.24 | changes |
| 28.0 | 1.48 | 1.24 | changes |
| 27.5 | 1.47 | 1.24 | changes |
| 27.4 | 1.47 | 1.24 | changes |
| 27.3 | 1.47 | 1.24 | changes |
| 27.2 | 1.47 | 1.24 | changes |
| 27.1 | 1.46 | 1.24 | changes |
| 27.0 | 1.46 | 1.24 | changes |
| 26.1 | 1.45 | 1.24 | changes |
| 26.0 | 1.45 | 1.24 | changes |
| 25.0 | 1.44 | 1.24 | changes |
| 24.0 | 1.43 | 1.12 | changes |
| 23.0 | 1.42 | 1.12 | changes |
| 20.10 | 1.41 | 1.12 | changes |
| 19.03 | 1.40 | 1.12 | changes |
Deprecated API versions
API versions before v1.40 are deprecated and no longer supported by current versions of the Docker Engine and CLI. You can find archived documentation for deprecated versions of the API in the code repository on GitHub:
- Documentation for API versions 1.24–1.43.
- Documentation for API versions 1.18–1.23.
- Documentation for API versions 1.17 and before.
| Docker version | Maximum API version | Minimum API version | Change log |
|---|---|---|---|
| 18.09 | 1.39 | 1.12 | changes |
| 18.06 | 1.38 | 1.12 | changes |
| 18.05 | 1.37 | 1.12 | changes |
| 18.04 | 1.37 | 1.12 | changes |
| 18.03 | 1.37 | 1.12 | changes |
| 18.02 | 1.36 | 1.12 | changes |
| 17.12 | 1.35 | 1.12 | changes |
| 17.11 | 1.34 | 1.12 | changes |
| 17.10 | 1.33 | 1.12 | changes |
| 17.09 | 1.32 | 1.12 | changes |
| 17.07 | 1.31 | 1.12 | changes |
| 17.06 | 1.30 | 1.12 | changes |
| 17.05 | 1.29 | 1.12 | changes |
| 17.04 | 1.28 | 1.12 | changes |
| 17.03.1 | 1.27 | 1.12 | changes |
| 17.03 | 1.26 | 1.12 | changes |
| 1.13.1 | 1.26 | 1.12 | changes |
| 1.13 | 1.25 | 1.12 | changes |
| 1.12 | 1.24 | 1.12 | changes |
| 1.11 | 1.23 | 1.12 | changes |
| 1.10 | 1.22 | 1.12 | changes |
| 1.9 | 1.21 | 1.12 | changes |
| 1.8 | 1.20 | 1.12 | changes |
| 1.7 | 1.19 | 1.0 | changes |
| 1.6 | 1.18 | 1.0 | changes |
| 1.5 | 1.17 | 1.0 | changes |
| 1.4 | 1.16 | 1.0 | changes |
| 1.3 | 1.15 | 1.0 | changes |
| 1.2 | 1.14 | 1.0 | changes |
| 1.1 | 1.13 | 1.0 | changes |
| 1.0 | 1.12 | 1.0 | changes |
| 0.12 | 1.12 | 1.0 | changes |
| 0.11 | 1.11 | 1.0 | changes |
| 0.10 | 1.10 | 1.0 | changes |
| 0.9 | 1.10 | 1.0 | changes |
| 0.8 | 1.9 | 1.0 | changes |
| 0.7.1 | 1.8 | 1.0 | changes |
| 0.7 | 1.7 | 1.0 | changes |
| 0.6.4 | 1.6 | 1.0 | changes |
| 0.6.2 | 1.5 | 1.0 | changes |
| 0.6 | 1.4 | 1.0 | changes |
| 0.5 | 1.3 | 1.0 | changes |
| 0.4.1 | 1.2 | 1.0 | changes |
| 0.3.4 | 1.1 | 1.0 | changes |
| 0.3.3 | 1.0 | 1.0 | changes |
| 0.3.2 | - | - | |
| 0.2 | - | - | |
| 0.1 | - | - |