Files
docker-cli/cli/command
Sebastiaan van Stijn 4c0aa94698 Hide legacy top-level "deploy" command with DOCKER_HIDE_LEGACY_COMMANDS=1
The `DOCKER_HIDE_LEGACY_COMMANDS` environment variable allows hiding legacy
top-level commands that are now available under `docker <object> <verb>`. The
`docker deploy` top-level command is experimental, and replaced by
`docker stack deploy`.

This patch hides the top-level `docker deploy` if the `DOCKER_HIDE_LEGACY_COMMANDS`
environment variable is set.

Before this change:

    DOCKER_HIDE_LEGACY_COMMANDS=1 docker --help

    ...

    Commands:
      build       Build an image from a Dockerfile
      deploy      Deploy a new stack or update an existing stack
      login       Log in to a Docker registry
      logout      Log out from a Docker registry
      run         Run a command in a new container
      search      Search the Docker Hub for images
      version     Show the Docker version information
    ...

With this patch applied:

    DOCKER_HIDE_LEGACY_COMMANDS=1 docker --help

    ...

    Commands:
      build       Build an image from a Dockerfile
      login       Log in to a Docker registry
      logout      Log out from a Docker registry
      run         Run a command in a new container
      search      Search the Docker Hub for images
      version     Show the Docker version information
    ...

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-01-07 17:24:35 +01:00
..
2018-06-08 18:24:26 +02:00
2018-06-08 18:24:26 +02:00
2018-12-19 13:48:41 +01:00
2018-06-08 18:24:26 +02:00
2018-11-08 11:37:49 +01:00
2018-11-08 11:37:49 +01:00
2018-11-08 11:37:49 +01:00
2018-10-23 17:05:44 +02:00
2018-11-08 11:37:49 +01:00
2017-09-01 19:41:06 -04:00
2017-05-03 18:41:19 -07:00
2017-09-01 19:41:06 -04:00
2017-05-03 18:41:19 -07:00