github.com/xdlianrong208/docker-ce-comments@v17.12.1-ce-rc2+incompatible/components/cli/docs/deprecated.md (about)

     1  ---
     2  aliases: ["/engine/misc/deprecated/"]
     3  description: "Deprecated Features."
     4  keywords: "docker, documentation, about, technology, deprecate"
     5  ---
     6  
     7  <!-- This file is maintained within the docker/cli GitHub
     8       repository at https://github.com/docker/cli/. 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  # Deprecated Engine Features
    17  
    18  The following list of features are deprecated in Engine.
    19  To learn more about Docker Engine's deprecation policy,
    20  see [Feature Deprecation Policy](https://docs.docker.com/engine/#feature-deprecation-policy).
    21  
    22  ### Asynchronous `service create` and `service update`
    23  
    24  **Deprecated In Release: v17.05.0**
    25  
    26  **Disabled by default in release: [v17.10](https://github.com/docker/docker-ce/releases/tag/v17.10.0-ce)**
    27  
    28  Docker 17.05.0 added an optional `--detach=false` option to make the
    29  `docker service create` and `docker service update` work synchronously. This
    30  option will be enabled by default in Docker 17.10, at which point the `--detach`
    31  flag can be used to use the previous (asynchronous) behavior.
    32  
    33  The default for this option will also be changed accordingly for `docker service rollback`
    34  and `docker service scale` in Docker 17.10.
    35  
    36  ### `-g` and `--graph` flags on `dockerd`
    37  
    38  **Deprecated In Release: v17.05.0**
    39  
    40  The `-g` or `--graph` flag for the `dockerd` or `docker daemon` command was
    41  used to indicate the directory in which to store persistent data and resource
    42  configuration and has been replaced with the more descriptive `--data-root`
    43  flag.
    44  
    45  These flags were added before Docker 1.0, so will not be _removed_, only
    46  _hidden_, to discourage their use.
    47  
    48  ### Top-level network properties in NetworkSettings
    49  
    50  **Deprecated In Release: [v1.13.0](https://github.com/docker/docker/releases/tag/v1.13.0)**
    51  
    52  **Target For Removal In Release: v17.12**
    53  
    54  When inspecting a container, `NetworkSettings` contains top-level information
    55  about the default ("bridge") network;
    56  
    57  `EndpointID`, `Gateway`, `GlobalIPv6Address`, `GlobalIPv6PrefixLen`, `IPAddress`,
    58  `IPPrefixLen`, `IPv6Gateway`, and `MacAddress`.
    59  
    60  These properties are deprecated in favor of per-network properties in
    61  `NetworkSettings.Networks`. These properties were already "deprecated" in
    62  docker 1.9, but kept around for backward compatibility.
    63  
    64  Refer to [#17538](https://github.com/docker/docker/pull/17538) for further
    65  information.
    66  
    67  ### `filter` param for `/images/json` endpoint
    68  **Deprecated In Release: [v1.13.0](https://github.com/docker/docker/releases/tag/v1.13.0)**
    69  
    70  **Target For Removal In Release: v17.12**
    71  
    72  The `filter` param to filter the list of image by reference (name or name:tag) is now implemented as a regular filter, named `reference`.
    73  
    74  ### `repository:shortid` image references
    75  **Deprecated In Release: [v1.13.0](https://github.com/docker/docker/releases/tag/v1.13.0)**
    76  
    77  **Removed In Release: v17.12**
    78  
    79  The `repository:shortid` syntax for referencing images is very little used,
    80  collides with tag references, and can be confused with digest references.
    81  
    82  Support for the `repository:shortid` notation to reference images was removed
    83  in Docker 17.12.
    84  
    85  ### `docker daemon` subcommand
    86  **Deprecated In Release: [v1.13.0](https://github.com/docker/docker/releases/tag/v1.13.0)**
    87  
    88  **Removed In Release: v17.12**
    89  
    90  The daemon is moved to a separate binary (`dockerd`), and should be used instead.
    91  
    92  ### Duplicate keys with conflicting values in engine labels
    93  **Deprecated In Release: [v1.13.0](https://github.com/docker/docker/releases/tag/v1.13.0)**
    94  
    95  **Removed In Release: v17.12**
    96  
    97  When setting duplicate keys with conflicting values, an error will be produced, and the daemon
    98  will fail to start.
    99  
   100  ### `MAINTAINER` in Dockerfile
   101  **Deprecated In Release: [v1.13.0](https://github.com/docker/docker/releases/tag/v1.13.0)**
   102  
   103  `MAINTAINER` was an early very limited form of `LABEL` which should be used instead.
   104  
   105  ### API calls without a version
   106  **Deprecated In Release: [v1.13.0](https://github.com/docker/docker/releases/tag/v1.13.0)**
   107  
   108  **Target For Removal In Release: v17.12**
   109  
   110  API versions should be supplied to all API calls to ensure compatibility with
   111  future Engine versions. Instead of just requesting, for example, the URL
   112  `/containers/json`, you must now request `/v1.25/containers/json`.
   113  
   114  ### Backing filesystem without `d_type` support for overlay/overlay2
   115  **Deprecated In Release: [v1.13.0](https://github.com/docker/docker/releases/tag/v1.13.0)**
   116  
   117  **Removed In Release: v17.12**
   118  
   119  The overlay and overlay2 storage driver does not work as expected if the backing
   120  filesystem does not support `d_type`. For example, XFS does not support `d_type`
   121  if it is formatted with the `ftype=0` option.
   122  
   123  Starting with Docker 17.12, new installations will not support running overlay2 on
   124  a backing filesystem without `d_type` support. For existing installations that upgrade
   125  to 17.12, a warning will be printed.
   126  
   127  Please also refer to [#27358](https://github.com/docker/docker/issues/27358) for
   128  further information.
   129  
   130  ### Three arguments form in `docker import`
   131  **Deprecated In Release: [v0.6.7](https://github.com/docker/docker/releases/tag/v0.6.7)**
   132  
   133  **Removed In Release: [v1.12.0](https://github.com/docker/docker/releases/tag/v1.12.0)**
   134  
   135  The `docker import` command format `file|URL|- [REPOSITORY [TAG]]` is deprecated since November 2013. It's no more supported.
   136  
   137  ### `-h` shorthand for `--help`
   138  
   139  **Deprecated In Release: [v1.12.0](https://github.com/docker/docker/releases/tag/v1.12.0)**
   140  
   141  **Target For Removal In Release: v17.09**
   142  
   143  The shorthand (`-h`) is less common than `--help` on Linux and cannot be used
   144  on all subcommands (due to it conflicting with, e.g. `-h` / `--hostname` on
   145  `docker create`). For this reason, the `-h` shorthand was not printed in the
   146  "usage" output of subcommands, nor documented, and is now marked "deprecated".
   147  
   148  ### `-e` and `--email` flags on `docker login`
   149  **Deprecated In Release: [v1.11.0](https://github.com/docker/docker/releases/tag/v1.11.0)**
   150  
   151  **Removed In Release: [v17.06](https://github.com/docker/docker-ce/releases/tag/v17.06.0-ce)**
   152  
   153  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.
   154  
   155  ### Separator (`:`) of `--security-opt` flag on `docker run`
   156  **Deprecated In Release: [v1.11.0](https://github.com/docker/docker/releases/tag/v1.11.0)**
   157  
   158  **Target For Removal In Release: v17.06**
   159  
   160  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`.
   161  
   162  ### `/containers/(id or name)/copy` endpoint
   163  
   164  **Deprecated In Release: [v1.8.0](https://github.com/docker/docker/releases/tag/v1.8.0)**
   165  
   166  **Removed In Release: [v1.12.0](https://github.com/docker/docker/releases/tag/v1.12.0)**
   167  
   168  The endpoint `/containers/(id or name)/copy` is deprecated in favor of `/containers/(id or name)/archive`.
   169  
   170  ### Ambiguous event fields in API
   171  **Deprecated In Release: [v1.10.0](https://github.com/docker/docker/releases/tag/v1.10.0)**
   172  
   173  The fields `ID`, `Status` and `From` in the events API have been deprecated in favor of a more rich structure.
   174  See the events API documentation for the new format.
   175  
   176  ### `-f` flag on `docker tag`
   177  **Deprecated In Release: [v1.10.0](https://github.com/docker/docker/releases/tag/v1.10.0)**
   178  
   179  **Removed In Release: [v1.12.0](https://github.com/docker/docker/releases/tag/v1.12.0)**
   180  
   181  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.
   182  
   183  ### HostConfig at API container start
   184  **Deprecated In Release: [v1.10.0](https://github.com/docker/docker/releases/tag/v1.10.0)**
   185  
   186  **Removed In Release: [v1.12.0](https://github.com/docker/docker/releases/tag/v1.12.0)**
   187  
   188  Passing an `HostConfig` to `POST /containers/{name}/start` is deprecated in favor of
   189  defining it at container creation (`POST /containers/create`).
   190  
   191  ### `--before` and `--since` flags on `docker ps`
   192  
   193  **Deprecated In Release: [v1.10.0](https://github.com/docker/docker/releases/tag/v1.10.0)**
   194  
   195  **Removed In Release: [v1.12.0](https://github.com/docker/docker/releases/tag/v1.12.0)**
   196  
   197  The `docker ps --before` and `docker ps --since` options are deprecated.
   198  Use `docker ps --filter=before=...` and `docker ps --filter=since=...` instead.
   199  
   200  ### `--automated` and `--stars` flags on `docker search`
   201  
   202  **Deprecated in Release: [v1.12.0](https://github.com/docker/docker/releases/tag/v1.12.0)**
   203  
   204  **Target For Removal In Release: v17.09**
   205  
   206  The `docker search --automated` and `docker search --stars` options are deprecated.
   207  Use `docker search --filter=is-automated=...` and `docker search --filter=stars=...` instead.
   208  
   209  ### Driver Specific Log Tags
   210  **Deprecated In Release: [v1.9.0](https://github.com/docker/docker/releases/tag/v1.9.0)**
   211  
   212  **Removed In Release: [v1.12.0](https://github.com/docker/docker/releases/tag/v1.12.0)**
   213  
   214  Log tags are now generated in a standard way across different logging drivers.
   215  Because of which, the driver specific log tag options `syslog-tag`, `gelf-tag` and
   216  `fluentd-tag` have been deprecated in favor of the generic `tag` option.
   217  
   218  ```bash
   219  {% raw %}
   220  docker --log-driver=syslog --log-opt tag="{{.ImageName}}/{{.Name}}/{{.ID}}"
   221  {% endraw %}
   222  ```
   223  
   224  ### LXC built-in exec driver
   225  **Deprecated In Release: [v1.8.0](https://github.com/docker/docker/releases/tag/v1.8.0)**
   226  
   227  **Removed In Release: [v1.10.0](https://github.com/docker/docker/releases/tag/v1.10.0)**
   228  
   229  The built-in LXC execution driver, the lxc-conf flag, and API fields have been removed.
   230  
   231  ### Old Command Line Options
   232  **Deprecated In Release: [v1.8.0](https://github.com/docker/docker/releases/tag/v1.8.0)**
   233  
   234  **Removed In Release: [v1.10.0](https://github.com/docker/docker/releases/tag/v1.10.0)**
   235  
   236  The flags `-d` and `--daemon` are deprecated in favor of the `daemon` subcommand:
   237  
   238      docker daemon -H ...
   239  
   240  The following single-dash (`-opt`) variant of certain command line options
   241  are deprecated and replaced with double-dash options (`--opt`):
   242  
   243      docker attach -nostdin
   244      docker attach -sig-proxy
   245      docker build -no-cache
   246      docker build -rm
   247      docker commit -author
   248      docker commit -run
   249      docker events -since
   250      docker history -notrunc
   251      docker images -notrunc
   252      docker inspect -format
   253      docker ps -beforeId
   254      docker ps -notrunc
   255      docker ps -sinceId
   256      docker rm -link
   257      docker run -cidfile
   258      docker run -dns
   259      docker run -entrypoint
   260      docker run -expose
   261      docker run -link
   262      docker run -lxc-conf
   263      docker run -n
   264      docker run -privileged
   265      docker run -volumes-from
   266      docker search -notrunc
   267      docker search -stars
   268      docker search -t
   269      docker search -trusted
   270      docker tag -force
   271  
   272  The following double-dash options are deprecated and have no replacement:
   273  
   274      docker run --cpuset
   275      docker run --networking
   276      docker ps --since-id
   277      docker ps --before-id
   278      docker search --trusted
   279  
   280  **Deprecated In Release: [v1.5.0](https://github.com/docker/docker/releases/tag/v1.5.0)**
   281  
   282  **Removed In Release: [v1.12.0](https://github.com/docker/docker/releases/tag/v1.12.0)**
   283  
   284  The single-dash (`-help`) was removed, in favor of the double-dash `--help`
   285  
   286      docker -help
   287      docker [COMMAND] -help
   288  
   289  ### `--run` flag on docker commit
   290  
   291  **Deprecated In Release: [v0.10.0](https://github.com/docker/docker/releases/tag/v0.10.0)**
   292  
   293  **Removed In Release: [v1.13.0](https://github.com/docker/docker/releases/tag/v1.13.0)**
   294  
   295  The flag `--run` of the docker commit (and its short version `-run`) were deprecated in favor
   296  of the `--changes` flag that allows to pass `Dockerfile` commands.
   297  
   298  
   299  ### Interacting with V1 registries
   300  
   301  **Disabled By Default In Release: v17.06**
   302  
   303  **Removed In Release: v17.12**
   304  
   305  Version 1.8.3 added a flag (`--disable-legacy-registry=false`) which prevents the
   306  docker daemon from `pull`, `push`, and `login` operations against v1
   307  registries.  Though enabled by default, this signals the intent to deprecate
   308  the v1 protocol.
   309  
   310  Support for the v1 protocol to the public registry was removed in 1.13. Any
   311  mirror configurations using v1 should be updated to use a
   312  [v2 registry mirror](https://docs.docker.com/registry/recipes/mirror/).
   313  
   314  Starting with Docker 17.12, support for V1 registries has been removed, and the
   315  `--disable-legacy-registry` flag can no longer be used, and `dockerd` will fail to
   316  start when set.
   317  
   318  ### `--disable-legacy-registry` override daemon option
   319  
   320  **Disabled In Release: v17.12**
   321  
   322  **Target For Removal In Release: v18.03**
   323  
   324  The `--disable-legacy-registry` flag was disabled in Docker 17.12 and will print
   325  an error when used. For this error to be printed, the flag itself is still present,
   326  but hidden. The flag will be removed in Docker 18.03.
   327  
   328  
   329  ### Docker Content Trust ENV passphrase variables name change
   330  **Deprecated In Release: [v1.9.0](https://github.com/docker/docker/releases/tag/v1.9.0)**
   331  
   332  **Removed In Release: [v1.12.0](https://github.com/docker/docker/releases/tag/v1.12.0)**
   333  
   334  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
   335  
   336  - DOCKER_CONTENT_TRUST_OFFLINE_PASSPHRASE is now named DOCKER_CONTENT_TRUST_ROOT_PASSPHRASE
   337  - DOCKER_CONTENT_TRUST_TAGGING_PASSPHRASE is now named DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE
   338  
   339  ### `--api-enable-cors` flag on dockerd
   340  
   341  **Deprecated In Release: [v1.6.0](https://github.com/docker/docker/releases/tag/v1.6.0)**
   342  
   343  **Removed In Release: [v17.09](https://github.com/docker/docker-ce/releases/tag/v17.09.0-ce)**
   344  
   345  The flag `--api-enable-cors` is deprecated since v1.6.0. Use the flag
   346  `--api-cors-header` instead.