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