github.com/sijibomii/docker@v0.0.0-20231230191044-5cf6ca554647/docs/deprecated.md (about) 1 <!--[metadata]> 2 +++ 3 aliases = ["/engine/misc/deprecated/"] 4 title = "Deprecated Engine Features" 5 description = "Deprecated Features." 6 keywords = ["docker, documentation, about, technology, deprecate"] 7 [menu.main] 8 parent = "engine_use" 9 weight=80 10 +++ 11 <![end-metadata]--> 12 13 # Deprecated Engine Features 14 15 The following list of features are deprecated in Engine. 16 17 ### `-e` and `--email` flags on `docker login` 18 **Deprecated In Release: v1.11** 19 20 **Target For Removal In Release: v1.13** 21 22 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. 23 24 The flag `--security-opt` doesn't use the colon separator(`:`) anymore to divide keys and values, it uses the equal symbol(`=`) for consinstency with other similar flags, like `--storage-opt`. 25 26 ### Ambiguous event fields in API 27 **Deprecated In Release: v1.10** 28 29 The fields `ID`, `Status` and `From` in the events API have been deprecated in favor of a more rich structure. 30 See the events API documentation for the new format. 31 32 ### `-f` flag on `docker tag` 33 **Deprecated In Release: v1.10** 34 35 **Target For Removal In Release: v1.12** 36 37 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. 38 39 ### HostConfig at API container start 40 **Deprecated In Release: v1.10** 41 42 **Target For Removal In Release: v1.12** 43 44 Passing an `HostConfig` to `POST /containers/{name}/start` is deprecated in favor of 45 defining it at container creation (`POST /containers/create`). 46 47 ### Docker ps 'before' and 'since' options 48 49 **Deprecated In Release: [v1.10.0](https://github.com/docker/docker/releases/tag/v1.10.0)** 50 51 **Target For Removal In Release: v1.12** 52 53 The `docker ps --before` and `docker ps --since` options are deprecated. 54 Use `docker ps --filter=before=...` and `docker ps --filter=since=...` instead. 55 56 ### Command line short variant options 57 **Deprecated In Release: v1.9** 58 59 **Target For Removal In Release: v1.11** 60 61 The following short variant options are deprecated in favor of their long 62 variants: 63 64 docker run -c (--cpu-shares) 65 docker build -c (--cpu-shares) 66 docker create -c (--cpu-shares) 67 68 ### Driver Specific Log Tags 69 **Deprecated In Release: v1.9** 70 71 **Target For Removal In Release: v1.11** 72 73 Log tags are now generated in a standard way across different logging drivers. 74 Because of which, the driver specific log tag options `syslog-tag`, `gelf-tag` and 75 `fluentd-tag` have been deprecated in favor of the generic `tag` option. 76 77 docker --log-driver=syslog --log-opt tag="{{.ImageName}}/{{.Name}}/{{.ID}}" 78 79 ### LXC built-in exec driver 80 **Deprecated In Release: v1.8** 81 82 **Target For Removal In Release: v1.10** 83 84 The built-in LXC execution driver is deprecated for an external implementation. 85 The lxc-conf flag and API fields will also be removed. 86 87 ### Old Command Line Options 88 **Deprecated In Release: [v1.8.0](https://github.com/docker/docker/releases/tag/v1.8.0)** 89 90 **Target For Removal In Release: v1.10** 91 92 The flags `-d` and `--daemon` are deprecated in favor of the `daemon` subcommand: 93 94 docker daemon -H ... 95 96 The following single-dash (`-opt`) variant of certain command line options 97 are deprecated and replaced with double-dash options (`--opt`): 98 99 docker attach -nostdin 100 docker attach -sig-proxy 101 docker build -no-cache 102 docker build -rm 103 docker commit -author 104 docker commit -run 105 docker events -since 106 docker history -notrunc 107 docker images -notrunc 108 docker inspect -format 109 docker ps -beforeId 110 docker ps -notrunc 111 docker ps -sinceId 112 docker rm -link 113 docker run -cidfile 114 docker run -dns 115 docker run -entrypoint 116 docker run -expose 117 docker run -link 118 docker run -lxc-conf 119 docker run -n 120 docker run -privileged 121 docker run -volumes-from 122 docker search -notrunc 123 docker search -stars 124 docker search -t 125 docker search -trusted 126 docker tag -force 127 128 The following double-dash options are deprecated and have no replacement: 129 130 docker run --cpuset 131 docker run --networking 132 docker ps --since-id 133 docker ps --before-id 134 docker search --trusted 135 136 ### Interacting with V1 registries 137 138 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 disabled by default, this signals the intent to deprecate the v1 protocol. 139 140 ### Docker Content Trust ENV passphrase variables name change 141 **Deprecated In Release: v1.9** 142 143 **Target For Removal In Release: v1.10** 144 145 As of 1.9, Docker Content Trust Offline key will be renamed to Root key and the Tagging key will be renamed to Repository key. Due to this renaming, we're also changing the corresponding environment variables 146 147 - DOCKER_CONTENT_TRUST_OFFLINE_PASSPHRASE will now be named DOCKER_CONTENT_TRUST_ROOT_PASSPHRASE 148 - DOCKER_CONTENT_TRUST_TAGGING_PASSPHRASE will now be named DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE