2015-06-08 03:07:20 +00:00
<!-- [metadata]>
+++
title = "Remote API"
description = "API Documentation for Docker"
keywords = ["API, Docker, rcli, REST, documentation"]
[menu.main]
2016-01-24 04:36:40 +00:00
parent = "engine_remoteapi"
weight=-99
2015-06-08 03:07:20 +00:00
+++
<![end-metadata]-->
2014-04-16 00:53:12 +00:00
# Docker Remote API
2015-11-01 02:27:21 +00:00
Docker's Remote API uses an open schema model. In this model, unknown
2015-06-12 13:25:32 +00:00
properties in incoming messages are ignored. Client applications need to take
this behavior into account to ensure they do not break when talking to newer
Docker daemons.
The API tends to be REST, but for some complex commands, like attach or pull,
the HTTP connection is hijacked to transport STDOUT, STDIN, and STDERR.
2015-11-01 02:27:21 +00:00
2015-06-12 13:25:32 +00:00
By default the Docker daemon listens on `unix:///var/run/docker.sock` and the
client must have `root` access to interact with the daemon. If a group named
`docker` exists on your system, `docker` applies ownership of the socket to the
group.
2016-02-11 15:28:11 +00:00
To connect to the Docker daemon with cURL you need to use cURL 7.40 or
later, as these versions have the `--unix-socket` flag available. To
2016-02-22 19:22:20 +00:00
run `curl` against the daemon on the default socket, use the
2016-02-11 15:28:11 +00:00
following:
2016-03-14 19:07:44 +00:00
curl --unix-socket /var/run/docker.sock http:/containers/json
2016-02-11 15:28:11 +00:00
If you have bound the Docker daemon to a different socket path or TCP
port, you would reference that in your cURL rather than the
default.
2016-07-28 00:11:34 +00:00
The current version of the API is v1.25 which means calling `/info` is the same
as calling `/v1.25/info` . To call an older version of the API use
`/v1.24/info` . If a newer daemon is installed, new properties may be returned
2016-07-21 08:16:46 +00:00
even when calling older versions of the API.
2015-04-01 20:35:38 +00:00
2015-10-05 13:20:07 +00:00
Use the table below to find the API version for a Docker version:
2015-12-01 10:59:45 +00:00
Docker version | API version | Changes
----------------|------------------------------------|------------------------------------------------------
2016-07-28 00:11:34 +00:00
1.13.x | [1.25 ](docker_remote_api_v1.25.md ) | [API changes ](docker_remote_api.md#v1-25-api-changes )
2016-03-23 16:26:23 +00:00
1.12.x | [1.24 ](docker_remote_api_v1.24.md ) | [API changes ](docker_remote_api.md#v1-24-api-changes )
2016-01-15 15:38:33 +00:00
1.11.x | [1.23 ](docker_remote_api_v1.23.md ) | [API changes ](docker_remote_api.md#v1-23-api-changes )
2015-12-01 10:59:45 +00:00
1.10.x | [1.22 ](docker_remote_api_v1.22.md ) | [API changes ](docker_remote_api.md#v1-22-api-changes )
2015-11-01 02:27:21 +00:00
1.9.x | [1.21 ](docker_remote_api_v1.21.md ) | [API changes ](docker_remote_api.md#v1-21-api-changes )
1.8.x | [1.20 ](docker_remote_api_v1.20.md ) | [API changes ](docker_remote_api.md#v1-20-api-changes )
1.7.x | [1.19 ](docker_remote_api_v1.19.md ) | [API changes ](docker_remote_api.md#v1-19-api-changes )
1.6.x | [1.18 ](docker_remote_api_v1.18.md ) | [API changes ](docker_remote_api.md#v1-18-api-changes )
2015-10-05 13:20:07 +00:00
Refer to the [GitHub repository](
https://github.com/docker/docker/tree/master/docs/reference/api) for
older releases.
2015-06-12 13:25:32 +00:00
## Authentication
2016-04-19 12:39:14 +00:00
Authentication configuration is handled client side, so the
2015-06-12 13:25:32 +00:00
client has to send the `authConfig` as a `POST` in `/images/(name)/push` . The
`authConfig` , set as the `X-Registry-Auth` header, is currently a Base64 encoded
(JSON) string with the following structure:
2016-04-19 12:39:14 +00:00
```JSON
2015-06-12 13:25:32 +00:00
{"username": "string", "password": "string", "email": "string",
"serveraddress" : "string", "auth": ""}
```
2015-11-01 02:27:21 +00:00
2015-06-12 13:25:32 +00:00
Callers should leave the `auth` empty. The `serveraddress` is a domain/ip
without protocol. Throughout this structure, double quotes are required.
## Using Docker Machine with the API
2016-01-27 17:49:31 +00:00
If you are using `docker-machine` , the Docker daemon is on a host that
uses an encrypted TCP socket using TLS. This means, for Docker Machine users,
you need to add extra parameters to `curl` or `wget` when making test
API requests, for example:
2015-06-12 13:25:32 +00:00
```
2016-01-27 17:49:31 +00:00
curl --insecure \
--cert $DOCKER_CERT_PATH/cert.pem \
--key $DOCKER_CERT_PATH/key.pem \
https://YOUR_VM_IP:2376/images/json
wget --no-check-certificate --certificate=$DOCKER_CERT_PATH/cert.pem \
--private-key=$DOCKER_CERT_PATH/key.pem \
https://YOUR_VM_IP:2376/images/json -O - -q
2015-06-12 13:25:32 +00:00
```
2015-05-23 14:36:01 +00:00
## Docker Events
The following diagram depicts the container states accessible through the API.
2016-09-14 21:16:32 +00:00
[![States ](images/event_state.png )](../images/event_state.png)
2015-05-23 14:36:01 +00:00
Some container-related events are not affected by container state, so they are not included in this diagram. These events are:
* **export** emitted by `docker export`
* **exec_create** emitted by `docker exec`
* **exec_start** emitted by `docker exec` after **exec_create**
2016-06-03 17:11:52 +00:00
* **detach** emitted when client is detached from container process
* **exec_detach** emitted when client is detached from exec process
2015-05-23 14:36:01 +00:00
Running `docker rmi` emits an **untag** event when removing an image name. The `rmi` command may also emit **delete** events when images are deleted by ID directly or by deleting the last tag referring to the image.
2016-02-11 23:21:52 +00:00
> **Acknowledgment**: This diagram and the accompanying text were used with the permission of Matt Good and Gilder Labs. See Matt's original blog post [Docker Events Explained](https://gliderlabs.com/blog/2015/04/14/docker-events-explained/).
2015-05-23 14:36:01 +00:00
2015-06-12 13:25:32 +00:00
## Version history
2015-05-28 02:24:59 +00:00
2015-06-12 13:25:32 +00:00
This section lists each version from latest to oldest. Each listing includes a link to the full documentation set and the changes relevant in that release.
2015-05-28 02:24:59 +00:00
2016-07-28 00:11:34 +00:00
### v1.25 API changes
[Docker Remote API v1.25 ](docker_remote_api_v1.25.md ) documentation
2016-08-08 16:47:12 +00:00
* `POST /containers/create` now takes `AutoRemove` in HostConfig, to enable auto-removal of the container on daemon side when the container's process exits.
2016-08-15 11:33:56 +00:00
* `GET /containers/json` and `GET /containers/(id or name)/json` now return `"removing"` as a value for the `State.Status` field if the container is being removed. Previously, "exited" was returned as status.
* `GET /containers/json` now accepts `removing` as a valid value for the `status` filter.
2016-06-10 14:40:09 +00:00
* `DELETE /volumes/(name)` now accepts a `force` query parameter to force removal of volumes that were already removed out of band by the volume driver plugin.
2016-08-25 15:03:18 +00:00
* `POST /containers/create/` and `POST /containers/(name)/update` now validates restart policies.
2016-08-25 17:06:05 +00:00
* `POST /containers/create` now validates IPAMConfig in NetworkingConfig, and returns error for invalid IPv4 and IPv6 addresses (`--ip` and `--ip6` in `docker create/run` ).
Add new `HostConfig` field, `Mounts`.
`Mounts` allows users to specify in a much safer way the volumes they
want to use in the container.
This replaces `Binds` and `Volumes`, which both still exist, but
`Mounts` and `Binds`/`Volumes` are exclussive.
The CLI will continue to use `Binds` and `Volumes` due to concerns with
parsing the volume specs on the client side and cross-platform support
(for now).
The new API follows exactly the services mount API.
Example usage of `Mounts`:
```
$ curl -XPOST localhost:2375/containers/create -d '{
"Image": "alpine:latest",
"HostConfig": {
"Mounts": [{
"Type": "Volume",
"Target": "/foo"
},{
"Type": "bind",
"Source": "/var/run/docker.sock",
"Target": "/var/run/docker.sock",
},{
"Type": "volume",
"Name": "important_data",
"Target": "/var/data",
"ReadOnly": true,
"VolumeOptions": {
"DriverConfig": {
Name: "awesomeStorage",
Options: {"size": "10m"},
Labels: {"some":"label"}
}
}]
}
}'
```
There are currently 2 types of mounts:
- **bind**: Paths on the host that get mounted into the
container. Paths must exist prior to creating the container.
- **volume**: Volumes that persist after the
container is removed.
Not all fields are available in each type, and validation is done to
ensure these fields aren't mixed up between types.
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2016-04-26 18:25:35 +00:00
* `POST /containers/create` now takes a `Mounts` field in `HostConfig` which replaces `Binds` and `Volumes` . *note* : `Binds` and `Volumes` are still available but are exclusive with `Mounts`
2016-09-22 00:42:53 +00:00
* `POST /build` now performs a preliminary validation of the `Dockerfile` before starting the build, and returns an error if the syntax is incorrect. Note that this change is _unversioned_ and applied to all API versions.
2016-09-22 21:38:00 +00:00
* `POST /build` accepts `cachefrom` parameter to specify images used for build cache.
2016-06-09 15:32:20 +00:00
2016-03-23 16:26:23 +00:00
### v1.24 API changes
[Docker Remote API v1.24 ](docker_remote_api_v1.24.md ) documentation
2016-03-20 04:42:58 +00:00
* `POST /containers/create` now takes `StorageOpt` field.
2016-03-29 04:10:37 +00:00
* `GET /info` now returns `SecurityOptions` field, showing if `apparmor` , `seccomp` , or `selinux` is supported.
2016-07-12 22:45:23 +00:00
* `GET /info` no longer returns the `ExecutionDriver` property. This property was no longer used after integration
with ContainerD in Docker 1.11.
2016-04-25 20:21:11 +00:00
* `GET /networks` now supports filtering by `label` and `driver` .
2016-06-06 00:04:33 +00:00
* `GET /containers/json` now supports filtering containers by `network` name or id.
2016-09-20 11:51:55 +00:00
* `POST /containers/create` now takes `IOMaximumBandwidth` and `IOMaximumIOps` fields. Windows daemon only.
2016-05-08 01:36:10 +00:00
* `POST /containers/create` now returns an HTTP 400 "bad parameter" message
if no command is specified (instead of an HTTP 500 "server error")
2016-05-20 11:41:28 +00:00
* `GET /images/search` now takes a `filters` query parameter.
2016-05-08 23:15:33 +00:00
* `GET /events` now supports a `reload` event that is emitted when the daemon configuration is reloaded.
* `GET /events` now supports filtering by daemon name or ID.
2016-06-03 17:11:52 +00:00
* `GET /events` now supports a `detach` event that is emitted on detaching from container process.
* `GET /events` now supports an `exec_detach ` event that is emitted on detaching from exec process.
2016-05-25 11:49:10 +00:00
* `GET /images/json` now supports filters `since` and `before` .
2016-05-07 10:05:26 +00:00
* `POST /containers/(id or name)/start` no longer accepts a `HostConfig` .
2016-06-01 15:22:59 +00:00
* `POST /images/(name)/tag` no longer has a `force` query parameter.
2016-06-01 20:38:14 +00:00
* `GET /images/search` now supports maximum returned search results `limit` .
2016-06-03 17:38:03 +00:00
* `POST /containers/{name:.*}/copy` is now removed and errors out starting from this API version.
2016-05-21 11:56:04 +00:00
* API errors are now returned as JSON instead of plain text.
2016-06-14 22:14:16 +00:00
* `POST /containers/create` and `POST /containers/(id)/start` allow you to configure kernel parameters (sysctls) for use in the container.
2016-07-06 07:13:59 +00:00
* `POST /containers/<container ID>/exec` and `POST /exec/<exec ID>/start`
2016-06-29 20:30:09 +00:00
no longer expects a "Container" field to be present. This property was not used
and is no longer sent by the docker client.
2016-07-06 07:13:59 +00:00
* `POST /containers/create/` now validates the hostname (should be a valid RFC 1123 hostname).
2016-07-11 23:52:42 +00:00
* `POST /containers/create/` `HostConfig.PidMode` field now accepts `container:<name|id>` ,
to have the container join the PID namespace of an existing container.
2016-03-20 04:42:58 +00:00
2016-01-15 15:38:33 +00:00
### v1.23 API changes
[Docker Remote API v1.23 ](docker_remote_api_v1.23.md ) documentation
2015-12-29 14:35:37 +00:00
* `GET /containers/json` returns the state of the container, one of `created` , `restarting` , `running` , `paused` , `exited` or `dead` .
2016-02-03 22:46:01 +00:00
* `GET /containers/json` returns the mount points for the container.
2016-01-15 07:31:12 +00:00
* `GET /networks/(name)` now returns an `Internal` field showing whether the network is internal or not.
2016-02-23 16:08:09 +00:00
* `GET /networks/(name)` now returns an `EnableIPv6` field showing whether the network has ipv6 enabled or not.
2016-01-04 15:58:20 +00:00
* `POST /containers/(name)/update` now supports updating container's restart policy.
2016-02-23 16:08:09 +00:00
* `POST /networks/create` now supports enabling ipv6 on the network by setting the `EnableIPv6` field (doing this with a label will no longer work).
2016-02-18 10:10:31 +00:00
* `GET /info` now returns `CgroupDriver` field showing what cgroup driver the daemon is using; `cgroupfs` or `systemd` .
2016-03-02 13:35:17 +00:00
* `GET /info` now returns `KernelMemory` field, showing if "kernel memory limit" is supported.
2015-12-15 19:15:43 +00:00
* `POST /containers/create` now takes `PidsLimit` field, if the kernel is >= 4.3 and the pids cgroup is supported.
* `GET /containers/(id or name)/stats` now returns `pids_stats` , if the kernel is >= 4.3 and the pids cgroup is supported.
2016-02-08 14:23:24 +00:00
* `POST /containers/create` now allows you to override usernamespaces remapping and use privileged options for the container.
2016-03-15 03:31:42 +00:00
* `POST /containers/create` now allows specifying `nocopy` for named volumes, which disables automatic copying from the container path to the volume.
2016-03-04 21:31:40 +00:00
* `POST /auth` now returns an `IdentityToken` when supported by a registry.
2016-02-13 23:44:05 +00:00
* `POST /containers/create` with both `Hostname` and `Domainname` fields specified will result in the container's hostname being set to `Hostname` , rather than `Hostname.Domainname` .
2016-03-21 07:39:48 +00:00
* `GET /volumes` now supports more filters, new added filters are `name` and `driver` .
2016-04-08 16:15:08 +00:00
* `GET /containers/(id or name)/logs` now accepts a `details` query parameter to stream the extra attributes that were provided to the containers `LogOpts` , such as environment variables and labels, with the logs.
2016-08-09 10:03:35 +00:00
* `POST /images/load` now returns progress information as a JSON stream, and has a `quiet` query parameter to suppress progress details.
2016-01-15 15:38:33 +00:00
2015-10-14 00:12:50 +00:00
### v1.22 API changes
[Docker Remote API v1.22 ](docker_remote_api_v1.22.md ) documentation
2016-01-12 07:33:41 +00:00
* `POST /container/(name)/update` updates the resources of a container.
2015-10-19 16:33:43 +00:00
* `GET /containers/json` supports filter `isolation` on Windows.
Add containers’ networks to /containers/json
After addition of multi-host networking in Docker 1.9, Docker Remote
API is still returning only the network specified during creation
of the container in the “List Containers” (`/containers/json`) endpoint:
...
"HostConfig": {
"NetworkMode": "default"
},
The list of networks containers are attached to is only available at
Get Container (`/containers/<id>/json`) endpoint.
This does not allow applications utilizing multi-host networking to
be built on top of Docker Remote API.
Therefore I added a simple `"NetworkSettings"` section to the
`/containers/json` endpoint. This is not identical to the NetworkSettings
returned in Get Container (`/containers/<id>/json`) endpoint. It only
contains a single field `"Networks"`, which is essentially the same
value shown in inspect output of a container.
This change adds the following section to the `/containers/json`:
"NetworkSettings": {
"Networks": {
"bridge": {
"EndpointID": "2cdc4edb1ded3631c81f57966563e...",
"Gateway": "172.17.0.1",
"IPAddress": "172.17.0.2",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:ac:11:00:02"
}
}
}
This is of type `SummaryNetworkSettings` type, a minimal version of
`api/types#NetworkSettings`.
Actually all I need is the network name and the IPAddress fields. If folks
find this addition too big, I can create a `SummaryEndpointSettings` field
as well, containing just the IPAddress field.
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2015-12-10 04:48:50 +00:00
* `GET /containers/json` now returns the list of networks of containers.
2015-11-25 13:10:18 +00:00
* `GET /info` Now returns `Architecture` and `OSType` fields, providing information
about the host architecture and operating system type that the daemon runs on.
2015-11-20 11:41:25 +00:00
* `GET /networks/(name)` now returns a `Name` field for each container attached to the network.
2015-12-13 16:00:39 +00:00
* `GET /version` now returns the `BuildTime` field in RFC3339Nano format to make it
2015-11-30 14:44:06 +00:00
consistent with other date/time values returned by the API.
2015-11-04 05:03:12 +00:00
* `AuthConfig` now supports a `registrytoken` for token based authentication
2015-12-09 06:26:41 +00:00
* `POST /containers/create` now has a 4M minimum value limit for `HostConfig.KernelMemory`
2015-12-13 16:00:39 +00:00
* Pushes initiated with `POST /images/(name)/push` and pulls initiated with `POST /images/create`
2015-12-09 19:26:07 +00:00
will be cancelled if the HTTP connection making the API request is closed before
the push or pull completes.
2016-01-24 04:36:40 +00:00
* `POST /containers/create` now allows you to set a read/write rate limit for a
2015-07-08 11:06:48 +00:00
device (in bytes per second or IO per second).
2015-11-10 08:57:06 +00:00
* `GET /networks` now supports filtering by `name` , `id` and `type` .
2016-01-08 00:18:34 +00:00
* `POST /containers/create` now allows you to set the static IPv4 and/or IPv6 address for the container.
* `POST /networks/(id)/connect` now allows you to set the static IPv4 and/or IPv6 address for the container.
2016-01-12 00:23:12 +00:00
* `GET /info` now includes the number of containers running, stopped, and paused.
2016-02-23 16:08:09 +00:00
* `POST /networks/create` now supports restricting external access to the network by setting the `Internal` field.
2016-01-13 04:56:36 +00:00
* `POST /networks/(id)/disconnect` now includes a `Force` option to forcefully disconnect a container from network
2016-01-14 05:46:59 +00:00
* `GET /containers/(id)/json` now returns the `NetworkID` of containers.
2016-01-24 04:36:40 +00:00
* `POST /networks/create` Now supports an options field in the IPAM config that provides options
2015-10-23 19:28:39 +00:00
for custom IPAM plugins.
* `GET /networks/{network-id}` Now returns IPAM config options for custom IPAM plugins if any
are available.
2015-12-28 04:56:57 +00:00
* `GET /networks/<network-id>` now returns subnets info for user-defined networks.
2016-01-24 21:30:21 +00:00
* `GET /info` can now return a `SystemStatus` field useful for returning additional information about applications
that are built on top of engine.
2015-10-14 00:12:50 +00:00
2015-06-12 13:25:32 +00:00
### v1.21 API changes
2015-05-28 02:24:59 +00:00
2015-10-09 23:50:41 +00:00
[Docker Remote API v1.21 ](docker_remote_api_v1.21.md ) documentation
2015-05-15 18:35:41 +00:00
2015-06-12 13:25:32 +00:00
* `GET /volumes` lists volumes from all volume drivers.
2015-10-17 11:49:14 +00:00
* `POST /volumes/create` to create a volume.
2015-06-12 13:25:32 +00:00
* `GET /volumes/(name)` get low-level information about a volume.
2016-01-12 07:33:41 +00:00
* `DELETE /volumes/(name)` remove a volume with the specified name.
2015-10-13 09:26:27 +00:00
* `VolumeDriver` was moved from `config` to `HostConfig` to make the configuration portable.
* `GET /images/(name)/json` now returns information about an image's `RepoTags` and `RepoDigests` .
2015-08-04 20:51:48 +00:00
* The `config` option now accepts the field `StopSignal` , which specifies the signal to use to kill a container.
2015-08-24 09:17:15 +00:00
* `GET /containers/(id)/stats` will return networking information respectively for each interface.
2015-10-13 09:26:27 +00:00
* The `HostConfig` option now includes the `DnsOptions` field to configure the container's DNS options.
2014-11-14 18:59:14 +00:00
* `POST /build` now optionally takes a serialized map of build-time variables.
2015-09-15 19:33:11 +00:00
* `GET /events` now includes a `timenano` field, in addition to the existing `time` field.
2015-09-30 17:12:41 +00:00
* `GET /events` now supports filtering by image and container labels.
2015-10-09 07:02:04 +00:00
* `GET /info` now lists engine version information and return the information of `CPUShares` and `Cpuset` .
2015-10-02 14:48:35 +00:00
* `GET /containers/json` will return `ImageID` of the image used by container.
2015-09-12 02:50:21 +00:00
* `POST /exec/(name)/start` will now return an HTTP 409 when the container is either stopped or paused.
2015-09-25 12:49:02 +00:00
* `GET /containers/(name)/json` now accepts a `size` parameter. Setting this parameter to '1' returns container size information in the `SizeRw` and `SizeRootFs` fields.
2015-11-03 13:03:18 +00:00
* `GET /containers/(name)/json` now returns a `NetworkSettings.Networks` field,
detailing network settings per network. This field deprecates the
`NetworkSettings.Gateway` , `NetworkSettings.IPAddress` ,
`NetworkSettings.IPPrefixLen` , and `NetworkSettings.MacAddress` fields, which
are still returned for backward-compatibility, but will be removed in a future version.
* `GET /exec/(id)/json` now returns a `NetworkSettings.Networks` field,
detailing networksettings per network. This field deprecates the
`NetworkSettings.Gateway` , `NetworkSettings.IPAddress` ,
`NetworkSettings.IPPrefixLen` , and `NetworkSettings.MacAddress` fields, which
are still returned for backward-compatibility, but will be removed in a future version.
2015-10-13 09:26:27 +00:00
* The `HostConfig` option now includes the `OomScoreAdj` field for adjusting the
badness heuristic. This heuristic selects which processes the OOM killer kills
under out-of-memory conditions.
2015-05-15 18:35:41 +00:00
2015-06-12 13:25:32 +00:00
### v1.20 API changes
2015-05-15 18:35:41 +00:00
2015-11-06 22:12:51 +00:00
[Docker Remote API v1.20 ](docker_remote_api_v1.20.md ) documentation
2015-05-15 18:35:41 +00:00
2015-06-12 13:25:32 +00:00
* `GET /containers/(id)/archive` get an archive of filesystem content from a container.
* `PUT /containers/(id)/archive` upload an archive of content to be extracted to
an existing directory inside a container's filesystem.
* `POST /containers/(id)/copy` is deprecated in favor of the above `archive`
endpoint which can be used to download files and directories from a container.
* The `hostConfig` option now accepts the field `GroupAdd` , which specifies a
list of additional groups that the container process will run as.
2015-05-15 18:35:41 +00:00
2015-06-12 13:25:32 +00:00
### v1.19 API changes
2015-06-17 20:25:53 +00:00
2015-10-09 23:50:41 +00:00
[Docker Remote API v1.19 ](docker_remote_api_v1.19.md ) documentation
2015-04-01 20:35:38 +00:00
2015-06-12 13:25:32 +00:00
* When the daemon detects a version mismatch with the client, usually when
2015-05-19 16:28:50 +00:00
the client is newer than the daemon, an HTTP 400 is now returned instead
of a 404.
2015-06-12 13:25:32 +00:00
* `GET /containers/(id)/stats` now accepts `stream` bool to get only one set of stats and disconnect.
* `GET /containers/(id)/logs` now accepts a `since` timestamp parameter.
* `GET /info` The fields `Debug` , `IPv4Forwarding` , `MemoryLimit` , and
`SwapLimit` are now returned as boolean instead of as an int. In addition, the
end point now returns the new boolean fields `CpuCfsPeriod` , `CpuCfsQuota` , and
`OomKillDisable` .
2015-10-12 15:17:49 +00:00
* The `hostConfig` option now accepts the fields `CpuPeriod` and `CpuQuota`
* `POST /build` accepts `cpuperiod` and `cpuquota` options
2015-06-12 13:25:32 +00:00
### v1.18 API changes
2015-10-09 23:50:41 +00:00
[Docker Remote API v1.18 ](docker_remote_api_v1.18.md ) documentation
2015-06-12 13:25:32 +00:00
* `GET /version` now returns `Os` , `Arch` and `KernelVersion` .
* `POST /containers/create` and `POST /containers/(id)/start` allow you to set ulimit settings for use in the container.
* `GET /info` now returns `SystemTime` , `HttpProxy` ,`HttpsProxy` and `NoProxy` .
* `GET /images/json` added a `RepoDigests` field to include image digest information.
* `POST /build` can now set resource constraints for all containers created for the build.
* `CgroupParent` can be passed in the host config to setup container cgroups under a specific cgroup.
* `POST /build` closing the HTTP request cancels the build
* `POST /containers/(id)/exec` includes `Warnings` field to response.