2016-10-14 18:30:36 -04:00
---
aliases: ["/engine/misc/deprecated/"]
title: "Deprecated Engine Features"
description: "Deprecated Features."
2016-11-03 17:21:33 -04:00
keywords: "docker, documentation, about, technology, deprecate"
2016-10-14 18:30:36 -04:00
---
2015-06-11 18:06:22 -04:00
2016-10-19 13:25:45 -04:00
<!-- This file is maintained within the docker/docker Github
repository at https://github.com/docker/docker/. Make all
pull requests against that repo. If you see this file in
another repository, consider it read-only there, as it will
periodically be overwritten by the definitive file. Pull
requests which include edits to this file in other repositories
will be rejected.
-->
2016-01-23 23:36:40 -05:00
# Deprecated Engine Features
2015-06-11 18:06:22 -04:00
2016-01-23 23:36:40 -05:00
The following list of features are deprecated in Engine.
2016-07-12 23:14:11 -04:00
To learn more about Docker Engine's deprecation policy,
2016-10-17 10:55:45 -04:00
see [Feature Deprecation Policy ](https://docs.docker.com/engine/#feature-deprecation-policy ).
2016-07-12 23:14:11 -04:00
2016-11-22 01:17:24 -05:00
### `-g` and `--graph` flags on `dockerd`
2017-03-28 10:19:35 -04:00
**Deprecated In Release: v17.05.0**
2016-11-22 01:17:24 -05:00
The `-g` or `--graph` flag for the `dockerd` or `docker daemon` command was
used to indicate the directory in which to store persistent data and resource
configuration and has been replaced with the more descriptive `--data-root`
flag.
deprecate "top-level" network information in NetworkSettings
When inspecting a container, `NetworkSettings` contains top-level
information about the default ("bridge") network;
`EndpointID`, `Gateway`, `GlobalIPv6Address`, `GlobalIPv6PrefixLen`,
`IPAddress`, `IPPrefixLen`, `IPv6Gateway`, and `MacAddress`.
These properties are deprecated in favor of per-network properties in
`NetworkSettings.Networks`. These properties were already "deprecated" in
docker 1.9, but kept around for backward compatibility.
Refer to [#17538](https://github.com/docker/docker/pull/17538) for further
information.
This officially deprecates these properties, and marks them
for removal in 1.16
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2016-11-15 09:41:52 -05:00
2017-03-28 10:19:35 -04:00
These flags were added before Docker 1.0, so will not be _removed_ , only
_hidden_, to discourage their use.
deprecate "top-level" network information in NetworkSettings
When inspecting a container, `NetworkSettings` contains top-level
information about the default ("bridge") network;
`EndpointID`, `Gateway`, `GlobalIPv6Address`, `GlobalIPv6PrefixLen`,
`IPAddress`, `IPPrefixLen`, `IPv6Gateway`, and `MacAddress`.
These properties are deprecated in favor of per-network properties in
`NetworkSettings.Networks`. These properties were already "deprecated" in
docker 1.9, but kept around for backward compatibility.
Refer to [#17538](https://github.com/docker/docker/pull/17538) for further
information.
This officially deprecates these properties, and marks them
for removal in 1.16
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2016-11-15 09:41:52 -05:00
### Top-level network properties in NetworkSettings
2017-02-12 18:15:15 -05:00
**Deprecated In Release: [v1.13.0 ](https://github.com/docker/docker/releases/tag/v1.13.0 )**
deprecate "top-level" network information in NetworkSettings
When inspecting a container, `NetworkSettings` contains top-level
information about the default ("bridge") network;
`EndpointID`, `Gateway`, `GlobalIPv6Address`, `GlobalIPv6PrefixLen`,
`IPAddress`, `IPPrefixLen`, `IPv6Gateway`, and `MacAddress`.
These properties are deprecated in favor of per-network properties in
`NetworkSettings.Networks`. These properties were already "deprecated" in
docker 1.9, but kept around for backward compatibility.
Refer to [#17538](https://github.com/docker/docker/pull/17538) for further
information.
This officially deprecates these properties, and marks them
for removal in 1.16
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2016-11-15 09:41:52 -05:00
2017-02-27 20:16:47 -05:00
**Target For Removal In Release: v17.12**
deprecate "top-level" network information in NetworkSettings
When inspecting a container, `NetworkSettings` contains top-level
information about the default ("bridge") network;
`EndpointID`, `Gateway`, `GlobalIPv6Address`, `GlobalIPv6PrefixLen`,
`IPAddress`, `IPPrefixLen`, `IPv6Gateway`, and `MacAddress`.
These properties are deprecated in favor of per-network properties in
`NetworkSettings.Networks`. These properties were already "deprecated" in
docker 1.9, but kept around for backward compatibility.
Refer to [#17538](https://github.com/docker/docker/pull/17538) for further
information.
This officially deprecates these properties, and marks them
for removal in 1.16
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2016-11-15 09:41:52 -05:00
When inspecting a container, `NetworkSettings` contains top-level information
about the default ("bridge") network;
`EndpointID` , `Gateway` , `GlobalIPv6Address` , `GlobalIPv6PrefixLen` , `IPAddress` ,
`IPPrefixLen` , `IPv6Gateway` , and `MacAddress` .
These properties are deprecated in favor of per-network properties in
`NetworkSettings.Networks` . These properties were already "deprecated" in
docker 1.9, but kept around for backward compatibility.
Refer to [#17538 ](https://github.com/docker/docker/pull/17538 ) for further
information.
2017-03-22 22:48:34 -04:00
### `filter` param for `/images/json` endpoint
2016-12-08 06:03:46 -05:00
**Deprecated In Release: [v1.13.0 ](https://github.com/docker/docker/releases/tag/v1.13.0 )**
2016-11-11 09:34:01 -05:00
2017-02-27 20:16:47 -05:00
**Target For Removal In Release: v17.12**
2016-11-11 09:34:01 -05:00
The `filter` param to filter the list of image by reference (name or name:tag) is now implemented as a regular filter, named `reference` .
2015-06-11 18:06:22 -04:00
2016-10-06 20:12:17 -04:00
### `repository:shortid` image references
2016-12-08 06:03:46 -05:00
**Deprecated In Release: [v1.13.0 ](https://github.com/docker/docker/releases/tag/v1.13.0 )**
2016-10-06 20:12:17 -04:00
2017-02-27 20:16:47 -05:00
**Target For Removal In Release: v17.12**
2016-10-06 20:12:17 -04:00
2016-11-28 13:48:45 -05:00
`repository:shortid` syntax for referencing images is very little used, collides with tag references can be confused with digest references.
2016-10-06 20:12:17 -04:00
2016-09-22 16:38:18 -04:00
### `docker daemon` subcommand
2016-12-08 06:03:46 -05:00
**Deprecated In Release: [v1.13.0 ](https://github.com/docker/docker/releases/tag/v1.13.0 )**
2016-09-22 16:38:18 -04:00
2017-02-27 20:16:47 -05:00
**Target For Removal In Release: v17.12**
2016-09-22 16:38:18 -04:00
The daemon is moved to a separate binary (`dockerd`), and should be used instead.
2016-07-12 08:08:05 -04:00
### Duplicate keys with conflicting values in engine labels
2016-12-08 06:03:46 -05:00
**Deprecated In Release: [v1.13.0 ](https://github.com/docker/docker/releases/tag/v1.13.0 )**
2016-07-12 08:08:05 -04:00
2017-02-27 20:16:47 -05:00
**Target For Removal In Release: v17.12**
2016-07-12 08:08:05 -04:00
Duplicate keys with conflicting values have been deprecated. A warning is displayed
in the output, and an error will be returned in the future.
2016-11-11 04:23:02 -05:00
### `MAINTAINER` in Dockerfile
2016-12-08 06:03:46 -05:00
**Deprecated In Release: [v1.13.0 ](https://github.com/docker/docker/releases/tag/v1.13.0 )**
2016-11-11 04:23:02 -05:00
`MAINTAINER` was an early very limited form of `LABEL` which should be used instead.
### API calls without a version
2016-12-08 06:03:46 -05:00
**Deprecated In Release: [v1.13.0 ](https://github.com/docker/docker/releases/tag/v1.13.0 )**
2016-11-11 04:23:02 -05:00
2017-02-27 20:16:47 -05:00
**Target For Removal In Release: v17.12**
2016-11-11 04:23:02 -05:00
API versions should be supplied to all API calls to ensure compatibility with
future Engine versions. Instead of just requesting, for example, the URL
`/containers/json` , you must now request `/v1.25/containers/json` .
### Backing filesystem without `d_type` support for overlay/overlay2
2016-12-08 06:03:46 -05:00
**Deprecated In Release: [v1.13.0 ](https://github.com/docker/docker/releases/tag/v1.13.0 )**
2016-11-11 04:23:02 -05:00
2017-02-27 20:16:47 -05:00
**Target For Removal In Release: v17.12**
2016-11-11 04:23:02 -05:00
The overlay and overlay2 storage driver does not work as expected if the backing
filesystem does not support `d_type` . For example, XFS does not support `d_type`
if it is formatted with the `ftype=0` option.
Please also refer to [#27358 ](https://github.com/docker/docker/issues/27358 ) for
2016-11-13 23:04:25 -05:00
further information.
2016-11-11 04:23:02 -05:00
2016-12-08 06:03:46 -05:00
### Three arguments form in `docker import`
2016-06-05 12:07:34 -04:00
**Deprecated In Release: [v0.6.7 ](https://github.com/docker/docker/releases/tag/v0.6.7 )**
2016-07-27 05:30:42 -04:00
**Removed In Release: [v1.12.0 ](https://github.com/docker/docker/releases/tag/v1.12.0 )**
2016-06-05 12:07:34 -04:00
2016-12-08 06:03:46 -05:00
The `docker import` command format `file|URL|- [REPOSITORY [TAG]]` is deprecated since November 2013. It's no more supported.
2016-06-05 12:07:34 -04:00
2016-05-25 10:44:58 -04:00
### `-h` shorthand for `--help`
2016-07-27 05:30:42 -04:00
**Deprecated In Release: [v1.12.0 ](https://github.com/docker/docker/releases/tag/v1.12.0 )**
2016-05-25 10:44:58 -04:00
2017-02-27 20:16:47 -05:00
**Target For Removal In Release: v17.09**
2016-05-25 10:44:58 -04:00
The shorthand (`-h`) is less common than `--help` on Linux and cannot be used
on all subcommands (due to it conflicting with, e.g. `-h` / `--hostname` on
`docker create` ). For this reason, the `-h` shorthand was not printed in the
2016-07-19 10:42:23 -04:00
"usage" output of subcommands, nor documented, and is now marked "deprecated".
2016-05-25 10:44:58 -04:00
2016-02-29 20:51:36 -05:00
### `-e` and `--email` flags on `docker login`
2016-06-02 22:54:35 -04:00
**Deprecated In Release: [v1.11.0 ](https://github.com/docker/docker/releases/tag/v1.11.0 )**
2016-02-29 20:51:36 -05:00
2017-02-27 20:16:47 -05:00
**Target For Removal In Release: v17.06**
2016-02-29 20:51:36 -05:00
The docker login command is removing the ability to automatically register for an account with the target registry if the given username doesn't exist. Due to this change, the email flag is no longer required, and will be deprecated.
2016-05-07 11:46:15 -04:00
### Separator (`:`) of `--security-opt` flag on `docker run`
2016-06-02 22:54:35 -04:00
**Deprecated In Release: [v1.11.0 ](https://github.com/docker/docker/releases/tag/v1.11.0 )**
2016-05-07 11:46:15 -04:00
2017-02-27 20:16:47 -05:00
**Target For Removal In Release: v17.06**
2016-05-07 11:46:15 -04:00
2016-07-19 10:42:23 -04:00
The flag `--security-opt` doesn't use the colon separator(`:`) anymore to divide keys and values, it uses the equal symbol(`=`) for consistency with other similar flags, like `--storage-opt` .
2016-03-15 18:34:29 -04:00
2016-06-03 13:38:03 -04:00
### `/containers/(id or name)/copy` endpoint
2016-06-19 09:13:57 -04:00
**Deprecated In Release: [v1.8.0 ](https://github.com/docker/docker/releases/tag/v1.8.0 )**
2016-06-03 13:38:03 -04:00
2016-07-27 05:30:42 -04:00
**Removed In Release: [v1.12.0 ](https://github.com/docker/docker/releases/tag/v1.12.0 )**
2016-06-03 13:38:03 -04:00
The endpoint `/containers/(id or name)/copy` is deprecated in favor of `/containers/(id or name)/archive` .
2015-12-28 15:15:34 -05:00
### Ambiguous event fields in API
2016-06-02 22:54:35 -04:00
**Deprecated In Release: [v1.10.0 ](https://github.com/docker/docker/releases/tag/v1.10.0 )**
2015-12-28 15:15:34 -05:00
The fields `ID` , `Status` and `From` in the events API have been deprecated in favor of a more rich structure.
See the events API documentation for the new format.
2015-12-01 17:02:02 -05:00
### `-f` flag on `docker tag`
2016-05-29 11:16:39 -04:00
**Deprecated In Release: [v1.10.0 ](https://github.com/docker/docker/releases/tag/v1.10.0 )**
2015-12-01 17:02:02 -05:00
2016-07-27 05:30:42 -04:00
**Removed In Release: [v1.12.0 ](https://github.com/docker/docker/releases/tag/v1.12.0 )**
2015-12-01 17:02:02 -05:00
To make tagging consistent across the various `docker` commands, the `-f` flag on the `docker tag` command is deprecated. It is not longer necessary to specify `-f` to move a tag from one image to another. Nor will `docker` generate an error if the `-f` flag is missing and the specified tag is already in use.
2015-11-08 06:08:35 -05:00
### HostConfig at API container start
2016-06-02 22:54:35 -04:00
**Deprecated In Release: [v1.10.0 ](https://github.com/docker/docker/releases/tag/v1.10.0 )**
2015-11-08 06:08:35 -05:00
2016-07-27 05:30:42 -04:00
**Removed In Release: [v1.12.0 ](https://github.com/docker/docker/releases/tag/v1.12.0 )**
2015-11-08 06:08:35 -05:00
Passing an `HostConfig` to `POST /containers/{name}/start` is deprecated in favor of
defining it at container creation (`POST /containers/create`).
2016-12-08 06:03:46 -05:00
### `--before` and `--since` flags on `docker ps`
2015-11-05 02:08:00 -05:00
**Deprecated In Release: [v1.10.0 ](https://github.com/docker/docker/releases/tag/v1.10.0 )**
2016-07-27 05:30:42 -04:00
**Removed In Release: [v1.12.0 ](https://github.com/docker/docker/releases/tag/v1.12.0 )**
2015-11-05 02:08:00 -05:00
The `docker ps --before` and `docker ps --since` options are deprecated.
Use `docker ps --filter=before=...` and `docker ps --filter=since=...` instead.
2016-05-20 07:41:28 -04:00
2016-12-08 06:03:46 -05:00
### `--automated` and `--stars` flags on `docker search`
2016-05-20 07:41:28 -04:00
2016-07-27 05:30:42 -04:00
**Deprecated in Release: [v1.12.0 ](https://github.com/docker/docker/releases/tag/v1.12.0 )**
2016-05-20 07:41:28 -04:00
2017-02-27 20:16:47 -05:00
**Target For Removal In Release: v17.09**
2016-05-20 07:41:28 -04:00
The `docker search --automated` and `docker search --stars` options are deprecated.
Use `docker search --filter=is-automated=...` and `docker search --filter=stars=...` instead.
2015-11-05 02:08:00 -05:00
2015-08-06 18:50:44 -04:00
### Driver Specific Log Tags
2016-06-02 22:54:35 -04:00
**Deprecated In Release: [v1.9.0 ](https://github.com/docker/docker/releases/tag/v1.9.0 )**
2015-08-06 18:50:44 -04:00
2016-07-27 05:30:42 -04:00
**Removed In Release: [v1.12.0 ](https://github.com/docker/docker/releases/tag/v1.12.0 )**
2015-08-06 18:50:44 -04:00
Log tags are now generated in a standard way across different logging drivers.
Because of which, the driver specific log tag options `syslog-tag` , `gelf-tag` and
`fluentd-tag` have been deprecated in favor of the generic `tag` option.
2017-02-14 19:40:15 -05:00
```bash
{% raw %}
docker --log-driver=syslog --log-opt tag="{{.ImageName}}/{{.Name}}/{{.ID}}"
{% endraw %}
```
2015-08-06 18:50:44 -04:00
2015-08-03 12:46:50 -04:00
### LXC built-in exec driver
2016-06-02 22:54:35 -04:00
**Deprecated In Release: [v1.8.0 ](https://github.com/docker/docker/releases/tag/v1.8.0 )**
2015-08-03 12:46:50 -04:00
2016-06-02 22:54:35 -04:00
**Removed In Release: [v1.10.0 ](https://github.com/docker/docker/releases/tag/v1.10.0 )**
2015-08-03 12:46:50 -04:00
2016-05-14 19:55:01 -04:00
The built-in LXC execution driver, the lxc-conf flag, and API fields have been removed.
2015-08-03 12:46:50 -04:00
2015-06-11 18:06:22 -04:00
### Old Command Line Options
2015-10-23 00:10:43 -04:00
**Deprecated In Release: [v1.8.0 ](https://github.com/docker/docker/releases/tag/v1.8.0 )**
2015-06-11 18:06:22 -04:00
2016-05-11 09:48:07 -04:00
**Removed In Release: [v1.10.0 ](https://github.com/docker/docker/releases/tag/v1.10.0 )**
2015-06-11 18:06:22 -04:00
2015-07-22 17:52:20 -04:00
The flags `-d` and `--daemon` are deprecated in favor of the `daemon` subcommand:
docker daemon -H ...
2015-08-06 18:50:44 -04:00
The following single-dash (`-opt`) variant of certain command line options
2015-06-11 18:06:22 -04:00
are deprecated and replaced with double-dash options (`--opt`):
docker attach -nostdin
docker attach -sig-proxy
docker build -no-cache
docker build -rm
docker commit -author
docker commit -run
docker events -since
docker history -notrunc
docker images -notrunc
docker inspect -format
docker ps -beforeId
docker ps -notrunc
docker ps -sinceId
docker rm -link
docker run -cidfile
docker run -dns
docker run -entrypoint
docker run -expose
docker run -link
docker run -lxc-conf
docker run -n
docker run -privileged
docker run -volumes-from
docker search -notrunc
docker search -stars
docker search -t
docker search -trusted
docker tag -force
2015-07-22 21:34:41 -04:00
The following double-dash options are deprecated and have no replacement:
2015-06-11 18:06:22 -04:00
2015-11-09 09:37:24 -05:00
docker run --cpuset
2015-06-11 18:06:22 -04:00
docker run --networking
docker ps --since-id
docker ps --before-id
docker search --trusted
2015-09-16 14:21:34 -04:00
2016-05-25 10:44:58 -04:00
**Deprecated In Release: [v1.5.0 ](https://github.com/docker/docker/releases/tag/v1.5.0 )**
2016-07-27 05:30:42 -04:00
**Removed In Release: [v1.12.0 ](https://github.com/docker/docker/releases/tag/v1.12.0 )**
2016-05-25 10:44:58 -04:00
The single-dash (`-help`) was removed, in favor of the double-dash `--help`
docker -help
docker [COMMAND] -help
2016-08-19 07:14:03 -04:00
### `--run` flag on docker commit
**Deprecated In Release: [v0.10.0 ](https://github.com/docker/docker/releases/tag/v0.10.0 )**
2016-12-08 06:03:46 -05:00
**Removed In Release: [v1.13.0 ](https://github.com/docker/docker/releases/tag/v1.13.0 )**
2016-08-19 07:14:03 -04:00
2016-10-14 18:30:36 -04:00
The flag `--run` of the docker commit (and its short version `-run` ) were deprecated in favor
2016-08-19 07:14:03 -04:00
of the `--changes` flag that allows to pass `Dockerfile` commands.
2016-05-25 10:44:58 -04:00
2015-09-25 16:49:50 -04:00
### Interacting with V1 registries
2017-02-27 20:16:47 -05:00
**Disabled By Default In Release: v17.04**
2016-11-21 12:39:48 -05:00
2017-02-27 20:16:47 -05:00
**Target For Removal In Release: v17.10**
2016-11-21 12:39:48 -05:00
Version 1.9 adds a flag (`--disable-legacy-registry=false`) which prevents the
docker daemon from `pull` , `push` , and `login` operations against v1
registries. Though enabled by default, this signals the intent to deprecate
the v1 protocol.
Support for the v1 protocol to the public registry was removed in 1.13. Any
mirror configurations using v1 should be updated to use a
[v2 registry mirror ](https://docs.docker.com/registry/recipes/mirror/ ).
2015-09-25 16:49:50 -04:00
2015-10-09 15:14:46 -04:00
### Docker Content Trust ENV passphrase variables name change
2016-06-02 22:54:35 -04:00
**Deprecated In Release: [v1.9.0 ](https://github.com/docker/docker/releases/tag/v1.9.0 )**
2015-10-09 23:24:04 -04:00
2016-07-27 05:30:42 -04:00
**Removed In Release: [v1.12.0 ](https://github.com/docker/docker/releases/tag/v1.12.0 )**
2015-09-25 16:49:50 -04:00
2016-05-07 12:26:34 -04:00
Since 1.9, Docker Content Trust Offline key has been renamed to Root key and the Tagging key has been renamed to Repository key. Due to this renaming, we're also changing the corresponding environment variables
2015-10-09 15:14:46 -04:00
2016-05-09 13:29:42 -04:00
- DOCKER_CONTENT_TRUST_OFFLINE_PASSPHRASE is now named DOCKER_CONTENT_TRUST_ROOT_PASSPHRASE
- DOCKER_CONTENT_TRUST_TAGGING_PASSPHRASE is now named DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE