2015-06-11 18:06:22 -04:00
<!-- [metadata]>
+++
2016-01-23 23:36:40 -05:00
aliases = ["/engine/misc/deprecated/"]
title = "Deprecated Engine Features"
2015-06-11 18:06:22 -04:00
description = "Deprecated Features."
keywords = ["docker, documentation, about, technology, deprecate"]
[menu.main]
2016-01-23 23:36:40 -05:00
parent = "engine_use"
weight=80
2015-06-11 18:06:22 -04:00
+++
<![end-metadata]-->
2016-01-23 23:36:40 -05:00
# Deprecated Engine Features
2015-06-11 18:06:22 -04:00
2016-01-23 23:36:40 -05:00
The following list of features are deprecated in Engine.
2015-06-11 18:06:22 -04:00
2015-12-28 15:15:34 -05:00
### Ambiguous event fields in API
**Deprecated In Release: v1.10**
The fields `ID` , `Status` and `From` in the events API have been deprecated in favor of a more rich structure.
See the events API documentation for the new format.
2015-12-01 17:02:02 -05:00
### `-f` flag on `docker tag`
**Deprecated In Release: v1.10**
**Target For Removal In Release: v1.12**
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.
2015-11-08 06:08:35 -05:00
### HostConfig at API container start
**Deprecated In Release: v1.10**
**Target For Removal In Release: v1.12**
Passing an `HostConfig` to `POST /containers/{name}/start` is deprecated in favor of
defining it at container creation (`POST /containers/create`).
2015-11-05 02:08:00 -05:00
### Docker ps 'before' and 'since' options
**Deprecated In Release: [v1.10.0 ](https://github.com/docker/docker/releases/tag/v1.10.0 )**
**Target For Removal In Release: v1.12**
The `docker ps --before` and `docker ps --since` options are deprecated.
Use `docker ps --filter=before=...` and `docker ps --filter=since=...` instead.
2015-09-13 16:30:10 -04:00
### Command line short variant options
**Deprecated In Release: v1.9**
**Target For Removal In Release: v1.11**
The following short variant options are deprecated in favor of their long
variants:
docker run -c (--cpu-shares)
2015-10-16 15:05:18 -04:00
docker build -c (--cpu-shares)
docker create -c (--cpu-shares)
2015-09-13 16:30:10 -04:00
2015-08-06 18:50:44 -04:00
### Driver Specific Log Tags
**Deprecated In Release: v1.9**
**Target For Removal In Release: v1.11**
Log tags are now generated in a standard way across different logging drivers.
Because of which, the driver specific log tag options `syslog-tag` , `gelf-tag` and
`fluentd-tag` have been deprecated in favor of the generic `tag` option.
docker --log-driver=syslog --log-opt tag="{{.ImageName}}/{{.Name}}/{{.ID}}"
2015-08-03 12:46:50 -04:00
### LXC built-in exec driver
**Deprecated In Release: v1.8**
**Target For Removal In Release: v1.10**
The built-in LXC execution driver is deprecated for an external implementation.
2015-08-06 18:50:44 -04:00
The lxc-conf flag and API fields will also be removed.
2015-08-03 12:46:50 -04:00
2015-06-11 18:06:22 -04:00
### Old Command Line Options
2015-10-23 00:10:43 -04:00
**Deprecated In Release: [v1.8.0 ](https://github.com/docker/docker/releases/tag/v1.8.0 )**
2015-06-11 18:06:22 -04:00
**Target For Removal In Release: v1.10**
2015-07-22 17:52:20 -04:00
The flags `-d` and `--daemon` are deprecated in favor of the `daemon` subcommand:
docker daemon -H ...
2015-08-06 18:50:44 -04:00
The following single-dash (`-opt`) variant of certain command line options
2015-06-11 18:06:22 -04:00
are deprecated and replaced with double-dash options (`--opt`):
docker attach -nostdin
docker attach -sig-proxy
docker build -no-cache
docker build -rm
docker commit -author
docker commit -run
docker events -since
docker history -notrunc
docker images -notrunc
docker inspect -format
docker ps -beforeId
docker ps -notrunc
docker ps -sinceId
docker rm -link
docker run -cidfile
docker run -dns
docker run -entrypoint
docker run -expose
docker run -link
docker run -lxc-conf
docker run -n
docker run -privileged
docker run -volumes-from
docker search -notrunc
docker search -stars
docker search -t
docker search -trusted
docker tag -force
2015-07-22 21:34:41 -04:00
The following double-dash options are deprecated and have no replacement:
2015-06-11 18:06:22 -04:00
2015-11-09 09:37:24 -05:00
docker run --cpuset
2015-06-11 18:06:22 -04:00
docker run --networking
docker ps --since-id
docker ps --before-id
docker search --trusted
2015-09-16 14:21:34 -04:00
### Auto-creating missing host paths for bind mounts
2015-11-14 17:44:18 -05:00
**Deprecated in Release: v1.9**
2015-09-16 14:21:34 -04:00
**Target for Removal in Release: 1.11**
When creating a container with a bind-mounted volume-- `docker run -v /host/path:/container/path` --
docker was automatically creating the `/host/path` if it didn't already exist.
This auto-creation of the host path is deprecated and docker will error out if
the path does not exist.
2015-09-25 16:49:50 -04:00
### Interacting with V1 registries
2015-10-06 18:45:32 -04:00
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.
2015-09-25 16:49:50 -04:00
2015-10-09 15:14:46 -04:00
### Docker Content Trust ENV passphrase variables name change
2015-10-09 23:24:04 -04:00
**Deprecated In Release: v1.9**
**Target For Removal In Release: v1.10**
2015-09-25 16:49:50 -04:00
2015-10-09 15:14:46 -04:00
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
- DOCKER_CONTENT_TRUST_OFFLINE_PASSPHRASE will now be named DOCKER_CONTENT_TRUST_ROOT_PASSPHRASE
2015-10-09 23:24:04 -04:00
- DOCKER_CONTENT_TRUST_TAGGING_PASSPHRASE will now be named DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE