github.com/hustcat/docker@v1.3.3-0.20160314103604-901c67a8eeab/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  ### Ambiguous event fields in API
    25  **Deprecated In Release: v1.10**
    26  
    27  The fields `ID`, `Status` and `From` in the events API have been deprecated in favor of a more rich structure.
    28  See the events API documentation for the new format.
    29  
    30  ### `-f` flag on `docker tag`
    31  **Deprecated In Release: v1.10**
    32  
    33  **Target For Removal In Release: v1.12**
    34  
    35  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.
    36  
    37  ### HostConfig at API container start
    38  **Deprecated In Release: v1.10**
    39  
    40  **Target For Removal In Release: v1.12**
    41  
    42  Passing an `HostConfig` to `POST /containers/{name}/start` is deprecated in favor of
    43  defining it at container creation (`POST /containers/create`).
    44  
    45  ### Docker ps 'before' and 'since' options
    46  
    47  **Deprecated In Release: [v1.10.0](https://github.com/docker/docker/releases/tag/v1.10.0)**
    48  
    49  **Target For Removal In Release: v1.12**
    50  
    51  The `docker ps --before` and `docker ps --since` options are deprecated.
    52  Use `docker ps --filter=before=...` and `docker ps --filter=since=...` instead.
    53  
    54  ### Command line short variant options
    55  **Deprecated In Release: v1.9**
    56  
    57  **Target For Removal In Release: v1.11**
    58  
    59  The following short variant options are deprecated in favor of their long
    60  variants:
    61  
    62      docker run -c (--cpu-shares)
    63      docker build -c (--cpu-shares)
    64      docker create -c (--cpu-shares)
    65  
    66  ### Driver Specific Log Tags
    67  **Deprecated In Release: v1.9**
    68  
    69  **Target For Removal In Release: v1.11**
    70  
    71  Log tags are now generated in a standard way across different logging drivers.
    72  Because of which, the driver specific log tag options `syslog-tag`, `gelf-tag` and
    73  `fluentd-tag` have been deprecated in favor of the generic `tag` option.
    74  
    75      docker --log-driver=syslog --log-opt tag="{{.ImageName}}/{{.Name}}/{{.ID}}"
    76  
    77  ### LXC built-in exec driver
    78  **Deprecated In Release: v1.8**
    79  
    80  **Target For Removal In Release: v1.10**
    81  
    82  The built-in LXC execution driver is deprecated for an external implementation.
    83  The lxc-conf flag and API fields will also be removed.
    84  
    85  ### Old Command Line Options
    86  **Deprecated In Release: [v1.8.0](https://github.com/docker/docker/releases/tag/v1.8.0)**
    87  
    88  **Target For Removal In Release: v1.10**
    89  
    90  The flags `-d` and `--daemon` are deprecated in favor of the `daemon` subcommand:
    91  
    92      docker daemon -H ...
    93  
    94  The following single-dash (`-opt`) variant of certain command line options
    95  are deprecated and replaced with double-dash options (`--opt`):
    96  
    97      docker attach -nostdin
    98      docker attach -sig-proxy
    99      docker build -no-cache
   100      docker build -rm
   101      docker commit -author
   102      docker commit -run
   103      docker events -since
   104      docker history -notrunc
   105      docker images -notrunc
   106      docker inspect -format
   107      docker ps -beforeId
   108      docker ps -notrunc
   109      docker ps -sinceId
   110      docker rm -link
   111      docker run -cidfile
   112      docker run -dns
   113      docker run -entrypoint
   114      docker run -expose
   115      docker run -link
   116      docker run -lxc-conf
   117      docker run -n
   118      docker run -privileged
   119      docker run -volumes-from
   120      docker search -notrunc
   121      docker search -stars
   122      docker search -t
   123      docker search -trusted
   124      docker tag -force
   125  
   126  The following double-dash options are deprecated and have no replacement:
   127  
   128      docker run --cpuset
   129      docker run --networking
   130      docker ps --since-id
   131      docker ps --before-id
   132      docker search --trusted
   133  
   134  ### Auto-creating missing host paths for bind mounts
   135  **Deprecated in Release: v1.9**
   136  
   137  **Target for Removal in Release: 1.11**
   138  
   139  When creating a container with a bind-mounted volume-- `docker run -v /host/path:/container/path` --
   140  docker was automatically creating the `/host/path` if it didn't already exist.
   141  
   142  This auto-creation of the host path is deprecated and docker will error out if
   143  the path does not exist.
   144  
   145  ### Interacting with V1 registries
   146  
   147  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.
   148  
   149  ### Docker Content Trust ENV passphrase variables name change
   150  **Deprecated In Release: v1.9**
   151  
   152  **Target For Removal In Release: v1.10**
   153  
   154  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
   155  
   156  - DOCKER_CONTENT_TRUST_OFFLINE_PASSPHRASE will now be named DOCKER_CONTENT_TRUST_ROOT_PASSPHRASE
   157  - DOCKER_CONTENT_TRUST_TAGGING_PASSPHRASE will now be named DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE