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