Docker Engine API and SDKsEstimated reading time: 4 minutes
The Engine API is the API served by Docker Engine. It allows you to control every aspect of Docker from within your own applications, build tools to manage and monitor applications running on Docker, and even use it to build apps on Docker itself.
It is the API the Docker client uses to communicate with the Engine, so everything the Docker client can do can be done with the API. For example:
- Running and managing containers
- Managing Swarm nodes and services
- Reading logs and metrics
- Creating and managing Swarms
- Pulling and managing images
- Managing networks and volumes
The API can be accessed with any HTTP client, but we also provide Python and Go SDKs.
The version of the API you should use depends upon the version of your Docker daemon. A new version of the API is released when new features are added. The Docker API is backward-compatible, so you do not 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, use
$ docker version Client: Version: 17.04.0-ce API version: 1.28 Go version: go1.7.5 Git commit: 4845c56 Built: Wed Apr 5 06:06:36 2017 OS/Arch: darwin/amd64 Server: Version: 17.04.0-ce API version: 1.28 (minimum version 1.12) Go version: go1.7.5 Git commit: 4845c56 Built: Tue Apr 4 00:37:25 2017 OS/Arch: linux/amd64 Experimental: true
As an example, the
docker run command can be easily implemented in various
programming languages and by hitting the API directly with
To learn more, take a look at the getting started guide.