Merge pull request #13238 from hqhq/hq_fix_usingdocker_md

Remove wrong usage in usingdocker.md
This commit is contained in:
moxiegirl 2015-05-19 09:24:31 -07:00
commit 6f4b808f41
1 changed files with 11 additions and 29 deletions

View File

@ -49,47 +49,29 @@ language powering Docker).
Last stable version: 0.8.0 Last stable version: 0.8.0
### Seeing what the Docker client can do ## Get Docker command help
We can see all of the commands available to us with the Docker client by You can display the help for specific Docker commands. The help details the
running the `docker` binary without any options. options and their usage. To see a list of all the possible commands, use the
following:
$ docker $ docker --help
You will see a list of all currently available commands. To see usage for a specific command, specify the command with the `--help` flag:
Commands:
attach Attach to a running container
build Build an image from a Dockerfile
commit Create a new image from a container's changes
. . .
### Seeing Docker command usage
You can also zoom in and review the usage for specific Docker commands.
Try typing Docker followed with a `[command]` to see the usage for that
command:
$ docker attach
Help output . . .
Or you can also pass the `--help` flag to the `docker` binary.
$ docker attach --help $ docker attach --help
This will display the help text and all available flags:
Usage: docker attach [OPTIONS] CONTAINER Usage: docker attach [OPTIONS] CONTAINER
Attach to a running container Attach to a running container
--no-stdin=false: Do not attach stdin --help=false Print usage
--sig-proxy=true: Proxify all received signal to the process (non-TTY mode only) --no-stdin=false Do not attach stdin
--sig-proxy=true Proxy all received signals to the process
> **Note:** > **Note:**
> You can see a full list of Docker's commands > For further details and examples of each command, see the
> [here](/reference/commandline/cli/). > [command reference](/reference/commandline/cli/) in this guide.
## Running a web application in Docker ## Running a web application in Docker