github.com/endocode/docker@v1.4.2-0.20160113120958-46eb4700391e/docs/misc/deprecated.md (about) 1 <!--[metadata]> 2 +++ 3 title = "Docker Deprecated Features" 4 description = "Deprecated Features." 5 keywords = ["docker, documentation, about, technology, deprecate"] 6 [menu.main] 7 parent = "mn_use_docker" 8 +++ 9 <![end-metadata]--> 10 11 # Deprecated Features 12 13 The following list of features are deprecated. 14 15 ### Ambiguous event fields in API 16 **Deprecated In Release: v1.10** 17 18 The fields `ID`, `Status` and `From` in the events API have been deprecated in favor of a more rich structure. 19 See the events API documentation for the new format. 20 21 ### `-f` flag on `docker tag` 22 **Deprecated In Release: v1.10** 23 24 **Target For Removal In Release: v1.12** 25 26 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. 27 28 ### HostConfig at API container start 29 **Deprecated In Release: v1.10** 30 31 **Target For Removal In Release: v1.12** 32 33 Passing an `HostConfig` to `POST /containers/{name}/start` is deprecated in favor of 34 defining it at container creation (`POST /containers/create`). 35 36 ### Docker ps 'before' and 'since' options 37 38 **Deprecated In Release: [v1.10.0](https://github.com/docker/docker/releases/tag/v1.10.0)** 39 40 **Target For Removal In Release: v1.12** 41 42 The `docker ps --before` and `docker ps --since` options are deprecated. 43 Use `docker ps --filter=before=...` and `docker ps --filter=since=...` instead. 44 45 ### Command line short variant options 46 **Deprecated In Release: v1.9** 47 48 **Target For Removal In Release: v1.11** 49 50 The following short variant options are deprecated in favor of their long 51 variants: 52 53 docker run -c (--cpu-shares) 54 docker build -c (--cpu-shares) 55 docker create -c (--cpu-shares) 56 57 ### Driver Specific Log Tags 58 **Deprecated In Release: v1.9** 59 60 **Target For Removal In Release: v1.11** 61 62 Log tags are now generated in a standard way across different logging drivers. 63 Because of which, the driver specific log tag options `syslog-tag`, `gelf-tag` and 64 `fluentd-tag` have been deprecated in favor of the generic `tag` option. 65 66 docker --log-driver=syslog --log-opt tag="{{.ImageName}}/{{.Name}}/{{.ID}}" 67 68 ### LXC built-in exec driver 69 **Deprecated In Release: v1.8** 70 71 **Target For Removal In Release: v1.10** 72 73 The built-in LXC execution driver is deprecated for an external implementation. 74 The lxc-conf flag and API fields will also be removed. 75 76 ### Old Command Line Options 77 **Deprecated In Release: [v1.8.0](https://github.com/docker/docker/releases/tag/v1.8.0)** 78 79 **Target For Removal In Release: v1.10** 80 81 The flags `-d` and `--daemon` are deprecated in favor of the `daemon` subcommand: 82 83 docker daemon -H ... 84 85 The following single-dash (`-opt`) variant of certain command line options 86 are deprecated and replaced with double-dash options (`--opt`): 87 88 docker attach -nostdin 89 docker attach -sig-proxy 90 docker build -no-cache 91 docker build -rm 92 docker commit -author 93 docker commit -run 94 docker events -since 95 docker history -notrunc 96 docker images -notrunc 97 docker inspect -format 98 docker ps -beforeId 99 docker ps -notrunc 100 docker ps -sinceId 101 docker rm -link 102 docker run -cidfile 103 docker run -dns 104 docker run -entrypoint 105 docker run -expose 106 docker run -link 107 docker run -lxc-conf 108 docker run -n 109 docker run -privileged 110 docker run -volumes-from 111 docker search -notrunc 112 docker search -stars 113 docker search -t 114 docker search -trusted 115 docker tag -force 116 117 The following double-dash options are deprecated and have no replacement: 118 119 docker run --cpuset 120 docker run --networking 121 docker ps --since-id 122 docker ps --before-id 123 docker search --trusted 124 125 ### Auto-creating missing host paths for bind mounts 126 **Deprecated in Release: v1.9** 127 128 **Target for Removal in Release: 1.11** 129 130 When creating a container with a bind-mounted volume-- `docker run -v /host/path:/container/path` -- 131 docker was automatically creating the `/host/path` if it didn't already exist. 132 133 This auto-creation of the host path is deprecated and docker will error out if 134 the path does not exist. 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