github.com/zhuohuang-hust/src-cbuild@v0.0.0-20230105071821-c7aab3e7c840/docs/deprecated.md (about) 1 --- 2 aliases: ["/engine/misc/deprecated/"] 3 title: "Deprecated Engine Features" 4 description: "Deprecated Features." 5 keywords: "docker, documentation, about, technology, deprecate" 6 --- 7 8 <!-- This file is maintained within the docker/docker Github 9 repository at https://github.com/docker/docker/. Make all 10 pull requests against that repo. If you see this file in 11 another repository, consider it read-only there, as it will 12 periodically be overwritten by the definitive file. Pull 13 requests which include edits to this file in other repositories 14 will be rejected. 15 --> 16 17 # Deprecated Engine Features 18 19 The following list of features are deprecated in Engine. 20 To learn more about Docker Engine's deprecation policy, 21 see [Feature Deprecation Policy](https://docs.docker.com/engine/#feature-deprecation-policy). 22 23 ## `filter` param for `/images/json` endpoint 24 **Deprecated In Release: [v1.13](https://github.com/docker/docker/releases/tag/v1.13.0)** 25 26 **Target For Removal In Release: v1.16** 27 28 The `filter` param to filter the list of image by reference (name or name:tag) is now implemented as a regular filter, named `reference`. 29 30 ### `repository:shortid` image references 31 **Deprecated In Release: [v1.13](https://github.com/docker/docker/releases/tag/v1.13.0)** 32 33 **Target For Removal In Release: v1.16** 34 35 `repository:shortid` syntax for referencing images is very little used, collides with tag references can be confused with digest references. 36 37 ### `docker daemon` subcommand 38 **Deprecated In Release: [v1.13](https://github.com/docker/docker/releases/tag/v1.13.0)** 39 40 **Target For Removal In Release: v1.16** 41 42 The daemon is moved to a separate binary (`dockerd`), and should be used instead. 43 44 ### Duplicate keys with conflicting values in engine labels 45 **Deprecated In Release: [v1.13](https://github.com/docker/docker/releases/tag/v1.13.0)** 46 47 **Target For Removal In Release: v1.16** 48 49 Duplicate keys with conflicting values have been deprecated. A warning is displayed 50 in the output, and an error will be returned in the future. 51 52 ### `MAINTAINER` in Dockerfile 53 **Deprecated In Release: v1.13.0** 54 55 `MAINTAINER` was an early very limited form of `LABEL` which should be used instead. 56 57 ### API calls without a version 58 **Deprecated In Release: [v1.13](https://github.com/docker/docker/releases/)** 59 60 **Target For Removal In Release: v1.16** 61 62 API versions should be supplied to all API calls to ensure compatibility with 63 future Engine versions. Instead of just requesting, for example, the URL 64 `/containers/json`, you must now request `/v1.25/containers/json`. 65 66 ### Backing filesystem without `d_type` support for overlay/overlay2 67 **Deprecated In Release: v1.13.0** 68 69 **Target For Removal In Release: v1.16** 70 71 The overlay and overlay2 storage driver does not work as expected if the backing 72 filesystem does not support `d_type`. For example, XFS does not support `d_type` 73 if it is formatted with the `ftype=0` option. 74 75 Please also refer to [#27358](https://github.com/docker/docker/issues/27358) for 76 further information. 77 78 ### Three argument form in `docker import` 79 **Deprecated In Release: [v0.6.7](https://github.com/docker/docker/releases/tag/v0.6.7)** 80 81 **Removed In Release: [v1.12.0](https://github.com/docker/docker/releases/tag/v1.12.0)** 82 83 The `docker import` command format 'file|URL|- [REPOSITORY [TAG]]' is deprecated since November 2013. It's no more supported. 84 85 ### `-h` shorthand for `--help` 86 87 **Deprecated In Release: [v1.12.0](https://github.com/docker/docker/releases/tag/v1.12.0)** 88 89 **Target For Removal In Release: v1.15** 90 91 The shorthand (`-h`) is less common than `--help` on Linux and cannot be used 92 on all subcommands (due to it conflicting with, e.g. `-h` / `--hostname` on 93 `docker create`). For this reason, the `-h` shorthand was not printed in the 94 "usage" output of subcommands, nor documented, and is now marked "deprecated". 95 96 ### `-e` and `--email` flags on `docker login` 97 **Deprecated In Release: [v1.11.0](https://github.com/docker/docker/releases/tag/v1.11.0)** 98 99 **Removed In Release: [v1.14.0](https://github.com/docker/docker/releases/)** 100 101 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. 102 103 ### Separator (`:`) of `--security-opt` flag on `docker run` 104 **Deprecated In Release: [v1.11.0](https://github.com/docker/docker/releases/tag/v1.11.0)** 105 106 **Target For Removal In Release: v1.14** 107 108 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`. 109 110 ### `/containers/(id or name)/copy` endpoint 111 112 **Deprecated In Release: [v1.8.0](https://github.com/docker/docker/releases/tag/v1.8.0)** 113 114 **Removed In Release: [v1.12.0](https://github.com/docker/docker/releases/tag/v1.12.0)** 115 116 The endpoint `/containers/(id or name)/copy` is deprecated in favor of `/containers/(id or name)/archive`. 117 118 ### Ambiguous event fields in API 119 **Deprecated In Release: [v1.10.0](https://github.com/docker/docker/releases/tag/v1.10.0)** 120 121 The fields `ID`, `Status` and `From` in the events API have been deprecated in favor of a more rich structure. 122 See the events API documentation for the new format. 123 124 ### `-f` flag on `docker tag` 125 **Deprecated In Release: [v1.10.0](https://github.com/docker/docker/releases/tag/v1.10.0)** 126 127 **Removed In Release: [v1.12.0](https://github.com/docker/docker/releases/tag/v1.12.0)** 128 129 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. 130 131 ### HostConfig at API container start 132 **Deprecated In Release: [v1.10.0](https://github.com/docker/docker/releases/tag/v1.10.0)** 133 134 **Removed In Release: [v1.12.0](https://github.com/docker/docker/releases/tag/v1.12.0)** 135 136 Passing an `HostConfig` to `POST /containers/{name}/start` is deprecated in favor of 137 defining it at container creation (`POST /containers/create`). 138 139 ### Docker ps 'before' and 'since' options 140 141 **Deprecated In Release: [v1.10.0](https://github.com/docker/docker/releases/tag/v1.10.0)** 142 143 **Removed In Release: [v1.12.0](https://github.com/docker/docker/releases/tag/v1.12.0)** 144 145 The `docker ps --before` and `docker ps --since` options are deprecated. 146 Use `docker ps --filter=before=...` and `docker ps --filter=since=...` instead. 147 148 ### Docker search 'automated' and 'stars' options 149 150 **Deprecated in Release: [v1.12.0](https://github.com/docker/docker/releases/tag/v1.12.0)** 151 152 **Target For Removal In Release: v1.15** 153 154 The `docker search --automated` and `docker search --stars` options are deprecated. 155 Use `docker search --filter=is-automated=...` and `docker search --filter=stars=...` instead. 156 157 ### Driver Specific Log Tags 158 **Deprecated In Release: [v1.9.0](https://github.com/docker/docker/releases/tag/v1.9.0)** 159 160 **Removed In Release: [v1.12.0](https://github.com/docker/docker/releases/tag/v1.12.0)** 161 162 Log tags are now generated in a standard way across different logging drivers. 163 Because of which, the driver specific log tag options `syslog-tag`, `gelf-tag` and 164 `fluentd-tag` have been deprecated in favor of the generic `tag` option. 165 166 docker --log-driver=syslog --log-opt tag="{{.ImageName}}/{{.Name}}/{{.ID}}" 167 168 ### LXC built-in exec driver 169 **Deprecated In Release: [v1.8.0](https://github.com/docker/docker/releases/tag/v1.8.0)** 170 171 **Removed In Release: [v1.10.0](https://github.com/docker/docker/releases/tag/v1.10.0)** 172 173 The built-in LXC execution driver, the lxc-conf flag, and API fields have been removed. 174 175 ### Old Command Line Options 176 **Deprecated In Release: [v1.8.0](https://github.com/docker/docker/releases/tag/v1.8.0)** 177 178 **Removed In Release: [v1.10.0](https://github.com/docker/docker/releases/tag/v1.10.0)** 179 180 The flags `-d` and `--daemon` are deprecated in favor of the `daemon` subcommand: 181 182 docker daemon -H ... 183 184 The following single-dash (`-opt`) variant of certain command line options 185 are deprecated and replaced with double-dash options (`--opt`): 186 187 docker attach -nostdin 188 docker attach -sig-proxy 189 docker build -no-cache 190 docker build -rm 191 docker commit -author 192 docker commit -run 193 docker events -since 194 docker history -notrunc 195 docker images -notrunc 196 docker inspect -format 197 docker ps -beforeId 198 docker ps -notrunc 199 docker ps -sinceId 200 docker rm -link 201 docker run -cidfile 202 docker run -dns 203 docker run -entrypoint 204 docker run -expose 205 docker run -link 206 docker run -lxc-conf 207 docker run -n 208 docker run -privileged 209 docker run -volumes-from 210 docker search -notrunc 211 docker search -stars 212 docker search -t 213 docker search -trusted 214 docker tag -force 215 216 The following double-dash options are deprecated and have no replacement: 217 218 docker run --cpuset 219 docker run --networking 220 docker ps --since-id 221 docker ps --before-id 222 docker search --trusted 223 224 **Deprecated In Release: [v1.5.0](https://github.com/docker/docker/releases/tag/v1.5.0)** 225 226 **Removed In Release: [v1.12.0](https://github.com/docker/docker/releases/tag/v1.12.0)** 227 228 The single-dash (`-help`) was removed, in favor of the double-dash `--help` 229 230 docker -help 231 docker [COMMAND] -help 232 233 ### `--run` flag on docker commit 234 235 **Deprecated In Release: [v0.10.0](https://github.com/docker/docker/releases/tag/v0.10.0)** 236 237 **Removed In Release: [v1.13.0](https://github.com/docker/docker/releases/)** 238 239 The flag `--run` of the docker commit (and its short version `-run`) were deprecated in favor 240 of the `--changes` flag that allows to pass `Dockerfile` commands. 241 242 243 ### Interacting with V1 registries 244 245 **Disabled By Default In Release: v1.14** 246 247 **Target For Removal In Release: v1.17** 248 249 Version 1.9 adds a flag (`--disable-legacy-registry=false`) which prevents the 250 docker daemon from `pull`, `push`, and `login` operations against v1 251 registries. Though enabled by default, this signals the intent to deprecate 252 the v1 protocol. 253 254 Support for the v1 protocol to the public registry was removed in 1.13. Any 255 mirror configurations using v1 should be updated to use a 256 [v2 registry mirror](https://docs.docker.com/registry/recipes/mirror/). 257 258 ### Docker Content Trust ENV passphrase variables name change 259 **Deprecated In Release: [v1.9.0](https://github.com/docker/docker/releases/tag/v1.9.0)** 260 261 **Removed In Release: [v1.12.0](https://github.com/docker/docker/releases/tag/v1.12.0)** 262 263 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 264 265 - DOCKER_CONTENT_TRUST_OFFLINE_PASSPHRASE is now named DOCKER_CONTENT_TRUST_ROOT_PASSPHRASE 266 - DOCKER_CONTENT_TRUST_TAGGING_PASSPHRASE is now named DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE