github.com/docker/docker@v299999999.0.0-20200612211812-aaf470eca7b5+incompatible/docs/api/version-history.md (about)

     1  ---
     2  title: "Engine API version history"
     3  description: "Documentation of changes that have been made to Engine API."
     4  keywords: "API, Docker, rcli, REST, documentation"
     5  ---
     6  
     7  <!-- This file is maintained within the moby/moby GitHub
     8       repository at https://github.com/moby/moby/. Make all
     9       pull requests against that repo. If you see this file in
    10       another repository, consider it read-only there, as it will
    11       periodically be overwritten by the definitive file. Pull
    12       requests which include edits to this file in other repositories
    13       will be rejected.
    14  -->
    15  
    16  ## v1.41 API changes
    17  
    18  [Docker Engine API v1.41](https://docs.docker.com/engine/api/v1.41/) documentation
    19  
    20  * `GET /info` now returns an `CgroupVersion` field, containing the cgroup version.
    21  * `POST /services/create` and `POST /services/{id}/update` now supports `BindOptions.NonRecursive`.
    22  * The `ClusterStore` and `ClusterAdvertise` fields in `GET /info` are deprecated
    23    and are now omitted if they contain an empty value. This change is not versioned,
    24    and affects all API versions if the daemon has this patch.
    25  * The `filter` (singular) query parameter, which was deprecated in favor of the
    26    `filters` option in Docker 1.13, has now been removed from the `GET /images/json`
    27    endpoint. The parameter remains available when using API version 1.40 or below.
    28  * `GET /services` now returns `Capabilities` as part of the `ContainerSpec`.
    29  * `GET /services/{id}` now returns `Capabilities` as part of the `ContainerSpec`.
    30  * `POST /services/create` now accepts `Capabilities` as part of the `ContainerSpec`.
    31  * `POST /services/{id}/update` now accepts `Capabilities` as part of the `ContainerSpec`.
    32  * `GET /tasks` now  returns `Capabilities` as part of the `ContainerSpec`.
    33  * `GET /tasks/{id}` now  returns `Capabilities` as part of the `ContainerSpec`.
    34  * `GET /services` now returns `Pids` in `TaskTemplate.Resources.Limits`.
    35  * `GET /services/{id}` now returns `Pids` in `TaskTemplate.Resources.Limits`.
    36  * `POST /services/create` now accepts `Pids` in `TaskTemplate.Resources.Limits`.
    37  * `POST /services/{id}/update` now accepts `Pids` in `TaskTemplate.Resources.Limits`
    38    to limit the maximum number of PIDs.
    39  * `GET /tasks` now  returns `Pids` in `TaskTemplate.Resources.Limits`.
    40  * `GET /tasks/{id}` now  returns `Pids` in `TaskTemplate.Resources.Limits`.
    41  * `POST /containers/create` on Linux now accepts the `HostConfig.CgroupnsMode` property.
    42    Set the property to `host` to create the container in the daemon's cgroup namespace, or
    43    `private` to create the container in its own private cgroup namespace.  The per-daemon
    44    default is `host`, and can be changed by using the`CgroupNamespaceMode` daemon configuration
    45    parameter.
    46  * `GET /info` now  returns an `OSVersion` field, containing the operating system's
    47    version. This change is not versioned, and affects all API versions if the daemon
    48    has this patch.
    49  * `GET /info` no longer returns the `SystemStatus` field if it does not have a
    50    value set. This change is not versioned, and affects all API versions if the
    51    daemon has this patch.
    52  * `GET /services` now accepts query parameter `status`. When set `true`,
    53    services returned will include `ServiceStatus`, which provides Desired,
    54    Running, and Completed task counts for the service.
    55  * `GET /services` may now include `ReplicatedJob` or `GlobalJob` as the `Mode`
    56    in a `ServiceSpec`.
    57  * `GET /services/{id}` may now include `ReplicatedJob` or `GlobalJob` as the
    58    `Mode` in a `ServiceSpec`.
    59  * `POST /services/create` now accepts `ReplicatedJob or `GlobalJob` as the `Mode`
    60    in the `ServiceSpec.
    61  * `POST /services/{id}/update` accepts updating the fields of the
    62    `ReplicatedJob` object in the `ServiceSpec.Mode`. The service mode still
    63    cannot be changed, however.
    64  * `GET /services` now includes `JobStatus` on Services with mode
    65    `ReplicatedJob` or `GlobalJob`.
    66  * `GET /services/{id}` now includes `JobStatus` on Services with mode
    67    `ReplicatedJob` or `GlobalJob`.
    68  * `GET /tasks` now includes `JobIteration` on Tasks spawned from a job-mode
    69    service.
    70  * `GET /tasks/{id}` now includes `JobIteration` on the task if spawned from a
    71    job-mode service.
    72  * `GET /containers/{id}/stats` now accepts a query param (`one-shot`) which, when used with `stream=false` fetches a
    73    single set of stats instead of waiting for two collection cycles to have 2 CPU stats over a 1 second period.
    74  
    75  ## v1.40 API changes
    76  
    77  [Docker Engine API v1.40](https://docs.docker.com/engine/api/v1.40/) documentation
    78  
    79  * The `/_ping` endpoint can now be accessed both using `GET` or `HEAD` requests.
    80    when accessed using a `HEAD` request, all headers are returned, but the body
    81    is empty (`Content-Length: 0`). This change is not versioned, and affects all
    82    API versions if the daemon has this patch. Clients are recommended to try
    83    using `HEAD`, but fallback to `GET` if the `HEAD` requests fails.
    84  * `GET /_ping` and `HEAD /_ping` now set `Cache-Control` and `Pragma` headers to
    85    prevent the result from being cached. This change is not versioned, and affects
    86    all API versions if the daemon has this patch.
    87  * `GET /services` now returns `Sysctls` as part of the `ContainerSpec`.
    88  * `GET /services/{id}` now returns `Sysctls` as part of the `ContainerSpec`.
    89  * `POST /services/create` now accepts `Sysctls` as part of the `ContainerSpec`.
    90  * `POST /services/{id}/update` now accepts `Sysctls` as part of the `ContainerSpec`.
    91  * `POST /services/create` now accepts `Config` as part of `ContainerSpec.Privileges.CredentialSpec`.
    92  * `POST /services/{id}/update` now accepts `Config` as part of `ContainerSpec.Privileges.CredentialSpec`.
    93  * `POST /services/create` now includes `Runtime` as an option in `ContainerSpec.Configs`
    94  * `POST /services/{id}/update` now includes `Runtime` as an option in `ContainerSpec.Configs`
    95  * `GET /tasks` now  returns `Sysctls` as part of the `ContainerSpec`.
    96  * `GET /tasks/{id}` now  returns `Sysctls` as part of the `ContainerSpec`.
    97  * `GET /networks` now supports a `dangling` filter type. When set to `true` (or
    98    `1`), the endpoint returns all networks that are not in use by a container. When
    99    set to `false` (or `0`), only networks that are in use by one or more containers
   100    are returned.
   101  * `GET /nodes` now supports a filter type `node.label` filter to filter nodes based
   102    on the node.label. The format of the label filter is `node.label=<key>`/`node.label=<key>=<value>`
   103    to return those with the specified labels, or `node.label!=<key>`/`node.label!=<key>=<value>`
   104    to return those without the specified labels.
   105  * `POST /containers/create` now accepts a `fluentd-async` option in `HostConfig.LogConfig.Config`
   106    when using the Fluentd logging driver. This option deprecates the `fluentd-async-connect`
   107    option, which remains funtional, but will be removed in a future release. Users
   108    are encouraged to use the `fluentd-async` option going forward. This change is
   109    not versioned, and affects all API versions if the daemon has this patch.
   110  * `POST /containers/create` now accepts a `fluentd-request-ack` option in
   111    `HostConfig.LogConfig.Config` when using the Fluentd logging driver. If enabled,
   112    the Fluentd logging driver sends the chunk option with a unique ID. The server
   113    will respond with an acknowledgement. This option improves the reliability of
   114    the message transmission. This change is not versioned, and affects all API
   115    versions if the daemon has this patch.
   116  * `POST /containers/create`, `GET /containers/{id}/json`, and `GET /containers/json` now supports
   117    `BindOptions.NonRecursive`.
   118  * `POST /swarm/init` now accepts a `DataPathPort` property to set data path port number.
   119  * `GET /info` now returns information about `DataPathPort` that is currently used in swarm
   120  * `GET /info` now returns `PidsLimit` boolean to indicate if the host kernel has
   121    PID limit support enabled.
   122  * `GET /info` now includes `name=rootless` in `SecurityOptions` when the daemon is running in
   123    rootless mode.  This change is not versioned, and affects all API versions if the daemon has
   124    this patch.
   125  * `GET /info` now returns `none` as `CgroupDriver` when the daemon is running in rootless mode.
   126    This change is not versioned, and affects all API versions if the daemon has this patch.
   127  * `POST /containers/create` now accepts `DeviceRequests` as part of `HostConfig`.
   128    Can be used to set Nvidia GPUs.
   129  * `GET /swarm` endpoint now returns DataPathPort info
   130  * `POST /containers/create` now takes `KernelMemoryTCP` field to set hard limit for kernel TCP buffer memory.
   131  * `GET /service` now  returns `MaxReplicas` as part of the `Placement`.
   132  * `GET /service/{id}` now  returns `MaxReplicas` as part of the `Placement`.
   133  * `POST /service/create` and `POST /services/(id or name)/update` now take the field `MaxReplicas`
   134    as part of the service `Placement`, allowing to specify maximum replicas per node for the service.
   135  * `GET /containers` now returns `Capabilities` field as part of the `HostConfig`.
   136  * `GET /containers/{id}/json` now returns a `Capabilities` field as part of the `HostConfig`.
   137  * `POST /containers/create` now takes a `Capabilities` field to set the list of
   138    kernel capabilities to be available for the container (this overrides the default
   139    set).
   140  * `POST /containers/create` on Linux now creates a container with `HostConfig.IpcMode=private`
   141    by default, if IpcMode is not explicitly specified. The per-daemon default can be changed
   142    back to `shareable` by using `DefaultIpcMode` daemon configuration parameter.
   143  * `POST /containers/{id}/update` now accepts a `PidsLimit` field to tune a container's
   144    PID limit. Set `0` or `-1` for unlimited. Leave `null` to not change the current value.
   145  * `POST /build` now accepts `outputs` key for configuring build outputs when using BuildKit mode.
   146  
   147  ## V1.39 API changes
   148  
   149  [Docker Engine API v1.39](https://docs.docker.com/engine/api/v1.39/) documentation
   150  
   151  * `GET /info` now returns an empty string, instead of `<unknown>` for `KernelVersion`
   152    and `OperatingSystem` if the daemon was unable to obtain this information.
   153  * `GET /info` now returns information about the product license, if a license
   154    has been applied to the daemon.
   155  * `GET /info` now returns a `Warnings` field, containing warnings and informational
   156    messages about missing features, or issues related to the daemon configuration.
   157  * `POST /swarm/init` now accepts a `DefaultAddrPool` property to set global scope default address pool
   158  * `POST /swarm/init` now accepts a `SubnetSize` property to set global scope networks by giving the
   159    length of the subnet masks for every such network
   160  * `POST /session` (added in [V1.31](#v131-api-changes) is no longer experimental.
   161    This endpoint can be used to run interactive long-running protocols between the
   162    client and the daemon.
   163  
   164  ## V1.38 API changes
   165  
   166  [Docker Engine API v1.38](https://docs.docker.com/engine/api/v1.38/) documentation
   167  
   168  
   169  * `GET /tasks` and `GET /tasks/{id}` now return a `NetworkAttachmentSpec` field,
   170    containing the `ContainerID` for non-service containers connected to "attachable"
   171    swarm-scoped networks.
   172  
   173  ## v1.37 API changes
   174  
   175  [Docker Engine API v1.37](https://docs.docker.com/engine/api/v1.37/) documentation
   176  
   177  * `POST /containers/create` and `POST /services/create` now supports exposing SCTP ports.
   178  * `POST /configs/create` and `POST /configs/{id}/create` now accept a `Templating` driver.
   179  * `GET /configs` and `GET /configs/{id}` now return the `Templating` driver of the config.
   180  * `POST /secrets/create` and `POST /secrets/{id}/create` now accept a `Templating` driver.
   181  * `GET /secrets` and `GET /secrets/{id}` now return the `Templating` driver of the secret.
   182  
   183  ## v1.36 API changes
   184  
   185  [Docker Engine API v1.36](https://docs.docker.com/engine/api/v1.36/) documentation
   186  
   187  * `Get /events` now return `exec_die` event when an exec process terminates.  
   188  
   189  
   190  ## v1.35 API changes
   191  
   192  [Docker Engine API v1.35](https://docs.docker.com/engine/api/v1.35/) documentation
   193  
   194  * `POST /services/create` and `POST /services/(id)/update` now accepts an
   195    `Isolation` field on container spec to set the Isolation technology of the
   196    containers running the service (`default`, `process`, or `hyperv`). This
   197    configuration is only used for Windows containers.
   198  * `GET /containers/(name)/logs` now supports an additional query parameter: `until`,
   199    which returns log lines that occurred before the specified timestamp.
   200  * `POST /containers/{id}/exec` now accepts a `WorkingDir` property to set the
   201    work-dir for the exec process, independent of the container's work-dir.
   202  * `Get /version` now returns a `Platform.Name` field, which can be used by products
   203    using Moby as a foundation to return information about the platform.
   204  * `Get /version` now returns a `Components` field, which can be used to return
   205    information about the components used. Information about the engine itself is
   206    now included as a "Component" version, and contains all information from the
   207    top-level `Version`, `GitCommit`, `APIVersion`, `MinAPIVersion`, `GoVersion`,
   208    `Os`, `Arch`, `BuildTime`, `KernelVersion`, and `Experimental` fields. Going
   209    forward, the information from the `Components` section is preferred over their
   210    top-level counterparts.
   211  
   212  
   213  ## v1.34 API changes
   214  
   215  [Docker Engine API v1.34](https://docs.docker.com/engine/api/v1.34/) documentation
   216  
   217  * `POST /containers/(name)/wait?condition=removed` now also also returns
   218    in case of container removal failure. A pointer to a structure named
   219    `Error` added to the response JSON in order to indicate a failure.
   220    If `Error` is `null`, container removal has succeeded, otherwise
   221    the test of an error message indicating why container removal has failed
   222    is available from `Error.Message` field.
   223  
   224  ## v1.33 API changes
   225  
   226  [Docker Engine API v1.33](https://docs.docker.com/engine/api/v1.33/) documentation
   227  
   228  * `GET /events` now supports filtering 4 more kinds of events: `config`, `node`,
   229  `secret` and `service`.
   230  
   231  ## v1.32 API changes
   232  
   233  [Docker Engine API v1.32](https://docs.docker.com/engine/api/v1.32/) documentation
   234  
   235  * `POST /containers/create` now accepts additional values for the
   236    `HostConfig.IpcMode` property. New values are `private`, `shareable`,
   237    and `none`.
   238  * `DELETE /networks/{id or name}` fixed issue where a `name` equal to another
   239    network's name was able to mask that `id`. If both a network with the given
   240    _name_ exists, and a network with the given _id_, the network with the given
   241    _id_ is now deleted. This change is not versioned, and affects all API versions
   242    if the daemon has this patch.
   243  
   244  ## v1.31 API changes
   245  
   246  [Docker Engine API v1.31](https://docs.docker.com/engine/api/v1.31/) documentation
   247  
   248  * `DELETE /secrets/(name)` now returns status code 404 instead of 500 when the secret does not exist.
   249  * `POST /secrets/create` now returns status code 409 instead of 500 when creating an already existing secret.
   250  * `POST /secrets/create` now accepts a `Driver` struct, allowing the
   251    `Name` and driver-specific `Options` to be passed to store a secrets
   252    in an external secrets store. The `Driver` property can be omitted
   253    if the default (internal) secrets store is used.
   254  * `GET /secrets/(id)` and `GET /secrets` now return a `Driver` struct,
   255    containing the `Name` and driver-specific `Options` of the external
   256    secrets store used to store the secret. The `Driver` property is
   257    omitted if no external store is used.
   258  * `POST /secrets/(name)/update` now returns status code 400 instead of 500 when updating a secret's content which is not the labels.
   259  * `POST /nodes/(name)/update` now returns status code 400 instead of 500 when demoting last node fails.
   260  * `GET /networks/(id or name)` now takes an optional query parameter `scope` that will filter the network based on the scope (`local`, `swarm`, or `global`).
   261  * `POST /session` is a new endpoint that can be used for running interactive long-running protocols between client and
   262    the daemon. This endpoint is experimental and only available if the daemon is started with experimental features
   263    enabled.
   264  * `GET /images/(name)/get` now includes an `ImageMetadata` field which contains image metadata that is local to the engine and not part of the image config.
   265  * `POST /services/create` now accepts a `PluginSpec` when `TaskTemplate.Runtime` is set to `plugin`
   266  * `GET /events` now supports config events `create`, `update` and `remove` that are emitted when users create, update or remove a config
   267  * `GET /volumes/` and `GET /volumes/{name}` now return a `CreatedAt` field,
   268    containing the date/time the volume was created. This field is omitted if the
   269    creation date/time for the volume is unknown. For volumes with scope "global",
   270    this field represents the creation date/time of the local _instance_ of the
   271    volume, which may differ from instances of the same volume on different nodes.
   272  * `GET /system/df` now returns a `CreatedAt` field for `Volumes`. Refer to the
   273    `/volumes/` endpoint for a description of this field.
   274  
   275  ## v1.30 API changes
   276  
   277  [Docker Engine API v1.30](https://docs.docker.com/engine/api/v1.30/) documentation
   278  
   279  * `GET /info` now returns the list of supported logging drivers, including plugins.
   280  * `GET /info` and `GET /swarm` now returns the cluster-wide swarm CA info if the node is in a swarm: the cluster root CA certificate, and the cluster TLS
   281   leaf certificate issuer's subject and public key. It also displays the desired CA signing certificate, if any was provided as part of the spec.
   282  * `POST /build/` now (when not silent) produces an `Aux` message in the JSON output stream with payload `types.BuildResult` for each image produced. The final such message will reference the image resulting from the build.
   283  * `GET /nodes` and `GET /nodes/{id}` now returns additional information about swarm TLS info if the node is part of a swarm: the trusted root CA, and the
   284   issuer's subject and public key.
   285  * `GET /distribution/(name)/json` is a new endpoint that returns a JSON output stream with payload `types.DistributionInspect` for an image name. It includes a descriptor with the digest, and supported platforms retrieved from directly contacting the registry.
   286  * `POST /swarm/update` now accepts 3 additional parameters as part of the swarm spec's CA configuration; the desired CA certificate for
   287   the swarm, the desired CA key for the swarm (if not using an external certificate), and an optional parameter to force swarm to
   288   generate and rotate to a new CA certificate/key pair.
   289  * `POST /service/create` and `POST /services/(id or name)/update` now take the field `Platforms` as part of the service `Placement`, allowing to specify platforms supported by the service.
   290  * `POST /containers/(name)/wait` now accepts a `condition` query parameter to indicate which state change condition to wait for. Also, response headers are now returned immediately to acknowledge that the server has registered a wait callback for the client.
   291  * `POST /swarm/init` now accepts a `DataPathAddr` property to set the IP-address or network interface to use for data traffic
   292  * `POST /swarm/join` now accepts a `DataPathAddr` property to set the IP-address or network interface to use for data traffic
   293  * `GET /events` now supports service, node and secret events which are emitted when users create, update and remove service, node and secret
   294  * `GET /events` now supports network remove event which is emitted when users remove a swarm scoped network
   295  * `GET /events` now supports a filter type `scope` in which supported value could be swarm and local
   296  * `PUT /containers/(name)/archive` now accepts a `copyUIDGID` parameter to allow copy UID/GID maps to dest file or dir.
   297  
   298  ## v1.29 API changes
   299  
   300  [Docker Engine API v1.29](https://docs.docker.com/engine/api/v1.29/) documentation
   301  
   302  * `DELETE /networks/(name)` now allows to remove the ingress network, the one used to provide the routing-mesh.
   303  * `POST /networks/create` now supports creating the ingress network, by specifying an `Ingress` boolean field. As of now this is supported only when using the overlay network driver.
   304  * `GET /networks/(name)` now returns an `Ingress` field showing whether the network is the ingress one.
   305  * `GET /networks/` now supports a `scope` filter to filter networks based on the network mode (`swarm`, `global`, or `local`).
   306  * `POST /containers/create`, `POST /service/create` and `POST /services/(id or name)/update` now takes the field `StartPeriod` as a part of the `HealthConfig` allowing for specification of a period during which the container should not be considered unhealthy even if health checks do not pass.
   307  * `GET /services/(id)` now accepts an `insertDefaults` query-parameter to merge default values into the service inspect output.
   308  * `POST /containers/prune`, `POST /images/prune`, `POST /volumes/prune`, and `POST /networks/prune` now support a `label` filter to filter containers, images, volumes, or networks based on the label. The format of the label filter could be `label=<key>`/`label=<key>=<value>` to remove those with the specified labels, or `label!=<key>`/`label!=<key>=<value>` to remove those without the specified labels.
   309  * `POST /services/create` now accepts `Privileges` as part of `ContainerSpec`. Privileges currently include
   310    `CredentialSpec` and `SELinuxContext`.
   311  
   312  ## v1.28 API changes
   313  
   314  [Docker Engine API v1.28](https://docs.docker.com/engine/api/v1.28/) documentation
   315  
   316  * `POST /containers/create` now includes a `Consistency` field to specify the consistency level for each `Mount`, with possible values `default`, `consistent`, `cached`, or `delegated`.
   317  * `GET /containers/create` now takes a `DeviceCgroupRules` field in `HostConfig` allowing to set custom device cgroup rules for the created container.
   318  * Optional query parameter `verbose` for `GET /networks/(id or name)` will now list all services with all the tasks, including the non-local tasks on the given network.
   319  * `GET /containers/(id or name)/attach/ws` now returns WebSocket in binary frame format for API version >= v1.28, and returns WebSocket in text frame format for API version< v1.28, for the purpose of backward-compatibility.
   320  * `GET /networks` is optimised only to return list of all networks and network specific information. List of all containers attached to a specific network is removed from this API and is only available using the network specific `GET /networks/{network-id}`.
   321  * `GET /containers/json` now supports `publish` and `expose` filters to filter containers that expose or publish certain ports.
   322  * `POST /services/create` and `POST /services/(id or name)/update` now accept the `ReadOnly` parameter, which mounts the container's root filesystem as read only.
   323  * `POST /build` now accepts `extrahosts` parameter to specify a host to ip mapping to use during the build.
   324  * `POST /services/create` and `POST /services/(id or name)/update` now accept a `rollback` value for `FailureAction`.
   325  * `POST /services/create` and `POST /services/(id or name)/update` now accept an optional `RollbackConfig` object which specifies rollback options.
   326  * `GET /services` now supports a `mode` filter to filter services based on the service mode (either `global` or `replicated`).
   327  * `POST /containers/(name)/update` now supports updating `NanoCPUs` that represents CPU quota in units of 10<sup>-9</sup> CPUs.
   328  
   329  ## v1.27 API changes
   330  
   331  [Docker Engine API v1.27](https://docs.docker.com/engine/api/v1.27/) documentation
   332  
   333  * `GET /containers/(id or name)/stats` now includes an `online_cpus` field in both `precpu_stats` and `cpu_stats`. If this field is `nil` then for compatibility with older daemons the length of the corresponding `cpu_usage.percpu_usage` array should be used.
   334  
   335  ## v1.26 API changes
   336  
   337  [Docker Engine API v1.26](https://docs.docker.com/engine/api/v1.26/) documentation
   338  
   339  * `POST /plugins/(plugin name)/upgrade` upgrade a plugin.
   340  
   341  ## v1.25 API changes
   342  
   343  [Docker Engine API v1.25](https://docs.docker.com/engine/api/v1.25/) documentation
   344  
   345  * The API version is now required in all API calls. Instead of just requesting, for example, the URL `/containers/json`, you must now request `/v1.25/containers/json`.
   346  * `GET /version` now returns `MinAPIVersion`.
   347  * `POST /build` accepts `networkmode` parameter to specify network used during build.
   348  * `GET /images/(name)/json` now returns `OsVersion` if populated
   349  * `GET /info` now returns `Isolation`.
   350  * `POST /containers/create` now takes `AutoRemove` in HostConfig, to enable auto-removal of the container on daemon side when the container's process exits.
   351  * `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.
   352  * `GET /containers/json` now accepts `removing` as a valid value for the `status` filter.
   353  * `GET /containers/json` now supports filtering containers by `health` status.
   354  * `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.
   355  * `POST /containers/create/` and `POST /containers/(name)/update` now validates restart policies.
   356  * `POST /containers/create` now validates IPAMConfig in NetworkingConfig, and returns error for invalid IPv4 and IPv6 addresses (`--ip` and `--ip6` in `docker create/run`).
   357  * `POST /containers/create` now takes a `Mounts` field in `HostConfig` which replaces `Binds`, `Volumes`, and `Tmpfs`. *note*: `Binds`, `Volumes`, and `Tmpfs` are still available and can be combined with `Mounts`.
   358  * `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.
   359  * `POST /build` accepts `cachefrom` parameter to specify images used for build cache.
   360  * `GET /networks/` endpoint now correctly returns a list of *all* networks,
   361    instead of the default network if a trailing slash is provided, but no `name`
   362    or `id`.
   363  * `DELETE /containers/(name)` endpoint now returns an error of `removal of container name is already in progress` with status code of 400, when container name is in a state of removal in progress.
   364  * `GET /containers/json` now supports a `is-task` filter to filter
   365    containers that are tasks (part of a service in swarm mode).
   366  * `POST /containers/create` now takes `StopTimeout` field.
   367  * `POST /services/create` and `POST /services/(id or name)/update` now accept `Monitor` and `MaxFailureRatio` parameters, which control the response to failures during service updates.
   368  * `POST /services/(id or name)/update` now accepts a `ForceUpdate` parameter inside the `TaskTemplate`, which causes the service to be updated even if there are no changes which would ordinarily trigger an update.
   369  * `POST /services/create` and `POST /services/(id or name)/update` now return a `Warnings` array.
   370  * `GET /networks/(name)` now returns field `Created` in response to show network created time.
   371  * `POST /containers/(id or name)/exec` now accepts an `Env` field, which holds a list of environment variables to be set in the context of the command execution.
   372  * `GET /volumes`, `GET /volumes/(name)`, and `POST /volumes/create` now return the `Options` field which holds the driver specific options to use for when creating the volume.
   373  * `GET /exec/(id)/json` now returns `Pid`, which is the system pid for the exec'd process.
   374  * `POST /containers/prune` prunes stopped containers.
   375  * `POST /images/prune` prunes unused images.
   376  * `POST /volumes/prune` prunes unused volumes.
   377  * `POST /networks/prune` prunes unused networks.
   378  * Every API response now includes a `Docker-Experimental` header specifying if experimental features are enabled (value can be `true` or `false`).
   379  * Every API response now includes a `API-Version` header specifying the default API version of the server.
   380  * The `hostConfig` option now accepts the fields `CpuRealtimePeriod` and `CpuRtRuntime` to allocate cpu runtime to rt tasks when `CONFIG_RT_GROUP_SCHED` is enabled in the kernel.
   381  * The `SecurityOptions` field within the `GET /info` response now includes `userns` if user namespaces are enabled in the daemon.
   382  * `GET /nodes` and `GET /node/(id or name)` now return `Addr` as part of a node's `Status`, which is the address that that node connects to the manager from.
   383  * The `HostConfig` field now includes `NanoCPUs` that represents CPU quota in units of 10<sup>-9</sup> CPUs.
   384  * `GET /info` now returns more structured information about security options.
   385  * The `HostConfig` field now includes `CpuCount` that represents the number of CPUs available for execution by the container. Windows daemon only.
   386  * `POST /services/create` and `POST /services/(id or name)/update` now accept the `TTY` parameter, which allocate a pseudo-TTY in container.
   387  * `POST /services/create` and `POST /services/(id or name)/update` now accept the `DNSConfig` parameter, which specifies DNS related configurations in resolver configuration file (resolv.conf) through `Nameservers`, `Search`, and `Options`.
   388  * `POST /services/create` and `POST /services/(id or name)/update` now support
   389    `node.platform.arch` and `node.platform.os` constraints in the services 
   390    `TaskSpec.Placement.Constraints` field.
   391  * `GET /networks/(id or name)` now includes IP and name of all peers nodes for swarm mode overlay networks.
   392  * `GET /plugins` list plugins.
   393  * `POST /plugins/pull?name=<plugin name>` pulls a plugin.
   394  * `GET /plugins/(plugin name)` inspect a plugin.
   395  * `POST /plugins/(plugin name)/set` configure a plugin.
   396  * `POST /plugins/(plugin name)/enable` enable a plugin.
   397  * `POST /plugins/(plugin name)/disable` disable a plugin.
   398  * `POST /plugins/(plugin name)/push` push a plugin.
   399  * `POST /plugins/create?name=(plugin name)` create a plugin.
   400  * `DELETE /plugins/(plugin name)` delete a plugin.
   401  * `POST /node/(id or name)/update` now accepts both `id` or `name` to identify the node to update.
   402  * `GET /images/json` now support a `reference` filter.
   403  * `GET /secrets` returns information on the secrets.
   404  * `POST /secrets/create` creates a secret.
   405  * `DELETE /secrets/{id}` removes the secret `id`.
   406  * `GET /secrets/{id}` returns information on the secret `id`.
   407  * `POST /secrets/{id}/update` updates the secret `id`.
   408  * `POST /services/(id or name)/update` now accepts service name or prefix of service id as a parameter.
   409  * `POST /containers/create` added 2 built-in log-opts that work on all logging drivers,
   410    `mode` (`blocking`|`non-blocking`), and `max-buffer-size` (e.g. `2m`) which enables a non-blocking log buffer.
   411  * `POST /containers/create` now takes `HostConfig.Init` field to run an init
   412    inside the container that forwards signals and reaps processes.
   413  
   414  ## v1.24 API changes
   415  
   416  [Docker Engine API v1.24](v1.24.md) documentation
   417  
   418  * `POST /containers/create` now takes `StorageOpt` field.
   419  * `GET /info` now returns `SecurityOptions` field, showing if `apparmor`, `seccomp`, or `selinux` is supported.
   420  * `GET /info` no longer returns the `ExecutionDriver` property. This property was no longer used after integration
   421    with ContainerD in Docker 1.11.
   422  * `GET /networks` now supports filtering by `label` and `driver`.
   423  * `GET /containers/json` now supports filtering containers by `network` name or id.
   424  * `POST /containers/create` now takes `IOMaximumBandwidth` and `IOMaximumIOps` fields. Windows daemon only.
   425  * `POST /containers/create` now returns an HTTP 400 "bad parameter" message
   426    if no command is specified (instead of an HTTP 500 "server error")
   427  * `GET /images/search` now takes a `filters` query parameter.
   428  * `GET /events` now supports a `reload` event that is emitted when the daemon configuration is reloaded.
   429  * `GET /events` now supports filtering by daemon name or ID.
   430  * `GET /events` now supports a `detach` event that is emitted on detaching from container process.
   431  * `GET /events` now supports an `exec_detach ` event that is emitted on detaching from exec process.
   432  * `GET /images/json` now supports filters `since` and `before`.
   433  * `POST /containers/(id or name)/start` no longer accepts a `HostConfig`.
   434  * `POST /images/(name)/tag` no longer has a `force` query parameter.
   435  * `GET /images/search` now supports maximum returned search results `limit`.
   436  * `POST /containers/{name:.*}/copy` is now removed and errors out starting from this API version.
   437  * API errors are now returned as JSON instead of plain text.
   438  * `POST /containers/create` and `POST /containers/(id)/start` allow you to configure kernel parameters (sysctls) for use in the container.
   439  * `POST /containers/<container ID>/exec` and `POST /exec/<exec ID>/start`
   440    no longer expects a "Container" field to be present. This property was not used
   441    and is no longer sent by the docker client.
   442  * `POST /containers/create/` now validates the hostname (should be a valid RFC 1123 hostname).
   443  * `POST /containers/create/` `HostConfig.PidMode` field now accepts `container:<name|id>`,
   444    to have the container join the PID namespace of an existing container.
   445  
   446  ## v1.23 API changes
   447  
   448  [Docker Engine API v1.23](v1.23.md) documentation
   449  
   450  * `GET /containers/json` returns the state of the container, one of `created`, `restarting`, `running`, `paused`, `exited` or `dead`.
   451  * `GET /containers/json` returns the mount points for the container.
   452  * `GET /networks/(name)` now returns an `Internal` field showing whether the network is internal or not.
   453  * `GET /networks/(name)` now returns an `EnableIPv6` field showing whether the network has ipv6 enabled or not.
   454  * `POST /containers/(name)/update` now supports updating container's restart policy.
   455  * `POST /networks/create` now supports enabling ipv6 on the network by setting the `EnableIPv6` field (doing this with a label will no longer work).
   456  * `GET /info` now returns `CgroupDriver` field showing what cgroup driver the daemon is using; `cgroupfs` or `systemd`.
   457  * `GET /info` now returns `KernelMemory` field, showing if "kernel memory limit" is supported.
   458  * `POST /containers/create` now takes `PidsLimit` field, if the kernel is >= 4.3 and the pids cgroup is supported.
   459  * `GET /containers/(id or name)/stats` now returns `pids_stats`, if the kernel is >= 4.3 and the pids cgroup is supported.
   460  * `POST /containers/create` now allows you to override usernamespaces remapping and use privileged options for the container.
   461  * `POST /containers/create` now allows specifying `nocopy` for named volumes, which disables automatic copying from the container path to the volume.
   462  * `POST /auth` now returns an `IdentityToken` when supported by a registry.
   463  * `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`.
   464  * `GET /volumes` now supports more filters, new added filters are `name` and `driver`.
   465  * `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.
   466  * `POST /images/load` now returns progress information as a JSON stream, and has a `quiet` query parameter to suppress progress details.
   467  
   468  ## v1.22 API changes
   469  
   470  [Docker Engine API v1.22](v1.22.md) documentation
   471  
   472  * `POST /container/(name)/update` updates the resources of a container.
   473  * `GET /containers/json` supports filter `isolation` on Windows.
   474  * `GET /containers/json` now returns the list of networks of containers.
   475  * `GET /info` Now returns `Architecture` and `OSType` fields, providing information
   476    about the host architecture and operating system type that the daemon runs on.
   477  * `GET /networks/(name)` now returns a `Name` field for each container attached to the network.
   478  * `GET /version` now returns the `BuildTime` field in RFC3339Nano format to make it
   479    consistent with other date/time values returned by the API.
   480  * `AuthConfig` now supports a `registrytoken` for token based authentication
   481  * `POST /containers/create` now has a 4M minimum value limit for `HostConfig.KernelMemory`
   482  * Pushes initiated with `POST /images/(name)/push` and pulls initiated with `POST /images/create`
   483    will be cancelled if the HTTP connection making the API request is closed before
   484    the push or pull completes.
   485  * `POST /containers/create` now allows you to set a read/write rate limit for a
   486    device (in bytes per second or IO per second).
   487  * `GET /networks` now supports filtering by `name`, `id` and `type`.
   488  * `POST /containers/create` now allows you to set the static IPv4 and/or IPv6 address for the container.
   489  * `POST /networks/(id)/connect` now allows you to set the static IPv4 and/or IPv6 address for the container.
   490  * `GET /info` now includes the number of containers running, stopped, and paused.
   491  * `POST /networks/create` now supports restricting external access to the network by setting the `Internal` field.
   492  * `POST /networks/(id)/disconnect` now includes a `Force` option to forcefully disconnect a container from network
   493  * `GET /containers/(id)/json` now returns the `NetworkID` of containers.
   494  * `POST /networks/create` Now supports an options field in the IPAM config that provides options
   495    for custom IPAM plugins.
   496  * `GET /networks/{network-id}` Now returns IPAM config options for custom IPAM plugins if any
   497    are available.
   498  * `GET /networks/<network-id>` now returns subnets info for user-defined networks.
   499  * `GET /info` can now return a `SystemStatus` field useful for returning additional information about applications
   500    that are built on top of engine.
   501  
   502  ## v1.21 API changes
   503  
   504  [Docker Engine API v1.21](v1.21.md) documentation
   505  
   506  * `GET /volumes` lists volumes from all volume drivers.
   507  * `POST /volumes/create` to create a volume.
   508  * `GET /volumes/(name)` get low-level information about a volume.
   509  * `DELETE /volumes/(name)` remove a volume with the specified name.
   510  * `VolumeDriver` was moved from `config` to `HostConfig` to make the configuration portable.
   511  * `GET /images/(name)/json` now returns information about an image's `RepoTags` and `RepoDigests`.
   512  * The `config` option now accepts the field `StopSignal`, which specifies the signal to use to kill a container.
   513  * `GET /containers/(id)/stats` will return networking information respectively for each interface.
   514  * The `HostConfig` option now includes the `DnsOptions` field to configure the container's DNS options.
   515  * `POST /build` now optionally takes a serialized map of build-time variables.
   516  * `GET /events` now includes a `timenano` field, in addition to the existing `time` field.
   517  * `GET /events` now supports filtering by image and container labels.
   518  * `GET /info` now lists engine version information and return the information of `CPUShares` and `Cpuset`.
   519  * `GET /containers/json` will return `ImageID` of the image used by container.
   520  * `POST /exec/(name)/start` will now return an HTTP 409 when the container is either stopped or paused.
   521  * `POST /containers/create` now takes `KernelMemory` in HostConfig to specify kernel memory limit.
   522  * `GET /containers/(name)/json` now accepts a `size` parameter. Setting this parameter to '1' returns container size information in the `SizeRw` and `SizeRootFs` fields.
   523  * `GET /containers/(name)/json` now returns a `NetworkSettings.Networks` field,
   524    detailing network settings per network. This field deprecates the
   525    `NetworkSettings.Gateway`, `NetworkSettings.IPAddress`,
   526    `NetworkSettings.IPPrefixLen`, and `NetworkSettings.MacAddress` fields, which
   527    are still returned for backward-compatibility, but will be removed in a future version.
   528  * `GET /exec/(id)/json` now returns a `NetworkSettings.Networks` field,
   529    detailing networksettings per network. This field deprecates the
   530    `NetworkSettings.Gateway`, `NetworkSettings.IPAddress`,
   531    `NetworkSettings.IPPrefixLen`, and `NetworkSettings.MacAddress` fields, which
   532    are still returned for backward-compatibility, but will be removed in a future version.
   533  * The `HostConfig` option now includes the `OomScoreAdj` field for adjusting the
   534    badness heuristic. This heuristic selects which processes the OOM killer kills
   535    under out-of-memory conditions.
   536  
   537  ## v1.20 API changes
   538  
   539  [Docker Engine API v1.20](v1.20.md) documentation
   540  
   541  * `GET /containers/(id)/archive` get an archive of filesystem content from a container.
   542  * `PUT /containers/(id)/archive` upload an archive of content to be extracted to
   543  an existing directory inside a container's filesystem.
   544  * `POST /containers/(id)/copy` is deprecated in favor of the above `archive`
   545  endpoint which can be used to download files and directories from a container.
   546  * The `hostConfig` option now accepts the field `GroupAdd`, which specifies a
   547  list of additional groups that the container process will run as.
   548  
   549  ## v1.19 API changes
   550  
   551  [Docker Engine API v1.19](v1.19.md) documentation
   552  
   553  * When the daemon detects a version mismatch with the client, usually when
   554  the client is newer than the daemon, an HTTP 400 is now returned instead
   555  of a 404.
   556  * `GET /containers/(id)/stats` now accepts `stream` bool to get only one set of stats and disconnect.
   557  * `GET /containers/(id)/logs` now accepts a `since` timestamp parameter.
   558  * `GET /info` The fields `Debug`, `IPv4Forwarding`, `MemoryLimit`, and
   559  `SwapLimit` are now returned as boolean instead of as an int. In addition, the
   560  end point now returns the new boolean fields `CpuCfsPeriod`, `CpuCfsQuota`, and
   561  `OomKillDisable`.
   562  * The `hostConfig` option now accepts the fields `CpuPeriod` and `CpuQuota`
   563  * `POST /build` accepts `cpuperiod` and `cpuquota` options
   564  
   565  ## v1.18 API changes
   566  
   567  [Docker Engine API v1.18](v1.18.md) documentation
   568  
   569  * `GET /version` now returns `Os`, `Arch` and `KernelVersion`.
   570  * `POST /containers/create` and `POST /containers/(id)/start`allow you to  set ulimit settings for use in the container.
   571  * `GET /info` now returns `SystemTime`, `HttpProxy`,`HttpsProxy` and `NoProxy`.
   572  * `GET /images/json` added a `RepoDigests` field to include image digest information.
   573  * `POST /build` can now set resource constraints for all containers created for the build.
   574  * `CgroupParent` can be passed in the host config to setup container cgroups under a specific cgroup.
   575  * `POST /build` closing the HTTP request cancels the build
   576  * `POST /containers/(id)/exec` includes `Warnings` field to response.