Docker Engine API (original) (raw)

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, seeDevelop with Docker Engine SDKs.

The Docker Engine API is a RESTful API accessed by an HTTP client such as wget orcurl, or the HTTP library which is part of most modern programming languages.

You canview the reference for the latest version of the APIorchoose a specific version.

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.

Note

The Docker daemon and client don't necessarily need to be the same version at all times. However, keep the following in mind.

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 version of the API your Docker daemon and client support, usedocker version:

You can specify the API version to use in any of the following ways:

API version matrix

Deprecated API versions

API versions before v1.24 aredeprecated. You can find archived documentation for deprecated versions of the API in the code repository on GitHub: