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