Enabled GitHub Flavored Markdown

GitHub flavored markdown is now supported for links and images. Also, ran LinkChecker and FileResolver. Yay!
Fixes from Spider check
Output for docker/docker now goes into engine directory

Signed-off-by: Mary Anthony <mary@docker.com>
This commit is contained in:
Mary Anthony 2015-10-09 16:50:41 -07:00 committed by Tibor Vass
parent 1adb722255
commit e641a0f363
18 changed files with 134 additions and 127 deletions

View File

@ -41,7 +41,7 @@ on other branches by special arrangement with the Docker maintainers.
If you are a new or beginner contributor, we encourage you to read through the If you are a new or beginner contributor, we encourage you to read through the
[our detailed contributors [our detailed contributors
guide](https://docs.docker.com/project/who-written-for/). The guide explains in guide](who-written-for.md). The guide explains in
detail, with examples, how to contribute. If you are an experienced contributor detail, with examples, how to contribute. If you are an experienced contributor
this quickstart should be enough to get you started. this quickstart should be enough to get you started.
@ -89,7 +89,7 @@ own.
6. Check your writing for style and mechanical errors. 6. Check your writing for style and mechanical errors.
Use our [documentation style Use our [documentation style
guide](https://docs.docker.com/project/doc-style/) to check style. There are guide](doc-style.md) to check style. There are
several [good grammar and spelling online several [good grammar and spelling online
checkers](http://www.hemingwayapp.com/) that can check your writing checkers](http://www.hemingwayapp.com/) that can check your writing
mechanics. mechanics.
@ -109,7 +109,7 @@ links that are referenced in the documentation&mdash;there should be none.
## Style guide ## Style guide
If you have questions about how to write for Docker's documentation, please see If you have questions about how to write for Docker's documentation, please see
the [style guide](project/doc-style.md). The style guide provides the [style guide](doc-style.md). The style guide provides
guidance about grammar, syntax, formatting, styling, language, or tone. If guidance about grammar, syntax, formatting, styling, language, or tone. If
something isn't clear in the guide, please submit an issue to let us know or something isn't clear in the guide, please submit an issue to let us know or
submit a pull request to help us improve it. submit a pull request to help us improve it.

View File

@ -15,7 +15,7 @@ weight = 6
Currently, you can extend Docker by adding a plugin. This section contains the following topics: Currently, you can extend Docker by adding a plugin. This section contains the following topics:
* [Understand Docker plugins](/extend/plugins.md) * [Understand Docker plugins](plugins.md)
* [Write a volume plugin](/extend/plugins_volume.md) * [Write a volume plugin](plugins_volume.md)
* [Write a network plugin](/extend/plugins_network.md) * [Write a network plugin](plugins_network.md)
* [Docker plugin API](/extend/plugin_api.md) * [Docker plugin API](plugin_api.md)

View File

@ -16,7 +16,7 @@ Docker Engine.
This page is intended for people who want to develop their own Docker plugin. This page is intended for people who want to develop their own Docker plugin.
If you just want to learn about or use Docker plugins, look If you just want to learn about or use Docker plugins, look
[here](/extend/plugins). [here](plugins.md).
## What plugins are ## What plugins are

View File

@ -17,9 +17,9 @@ plugins.
## Types of plugins ## Types of plugins
Plugins extend Docker's functionality. They come in specific types. For Plugins extend Docker's functionality. They come in specific types. For
example, a [volume plugin](/extend/plugins_volume.md) might enable Docker example, a [volume plugin](plugins_volume.md) might enable Docker
volumes to persist across multiple Docker hosts and a volumes to persist across multiple Docker hosts and a
[network plugin](/extend/plugins_network.md) might provide network plumbing [network plugin](plugins_network.md) might provide network plumbing
using a favorite networking technology, such as vxlan overlay, ipvlan, EVPN, etc. using a favorite networking technology, such as vxlan overlay, ipvlan, EVPN, etc.
Currently Docker supports volume and network driver plugins. In the future it Currently Docker supports volume and network driver plugins. In the future it
@ -73,4 +73,4 @@ of the plugin for help. The Docker team may not be able to assist you.
## Writing a plugin ## Writing a plugin
If you are interested in writing a plugin for Docker, or seeing how they work If you are interested in writing a plugin for Docker, or seeing how they work
under the hood, see the [docker plugins reference](/extend/plugin_api). under the hood, see the [docker plugins reference](plugin_api.md).

View File

@ -1,10 +1,21 @@
<!--[metadata]>
+++
title = "Docker network driver plugins"
description = "Network drive plugins."
keywords = ["Examples, Usage, plugins, docker, documentation, user guide"]
[menu.main]
parent = "mn_extend"
weight=-1
+++
<![end-metadata]-->
# Docker network driver plugins # Docker network driver plugins
Docker supports network driver plugins via Docker supports network driver plugins via
[LibNetwork](https://github.com/docker/libnetwork). Network driver plugins are [LibNetwork](https://github.com/docker/libnetwork). Network driver plugins are
implemented as "remote drivers" for LibNetwork, which shares plugin implemented as "remote drivers" for LibNetwork, which shares plugin
infrastructure with Docker. In effect this means that network driver plugins infrastructure with Docker. In effect this means that network driver plugins
are activated in the same way as other plugins, and use the same kind of are activated in the same way as other plugins, and use the same kind of
protocol. protocol.
## Using network driver plugins ## Using network driver plugins
@ -18,7 +29,7 @@ commands. For example,
docker network create -d weave mynet docker network create -d weave mynet
Some network driver plugins are listed in [plugins.md](/docs/extend/plugins.md) Some network driver plugins are listed in [plugins](plugins.md)
The network thus created is owned by the plugin, so subsequent commands The network thus created is owned by the plugin, so subsequent commands
referring to that network will also be run through the plugin such as, referring to that network will also be run through the plugin such as,

View File

@ -12,7 +12,7 @@ parent = "mn_extend"
Docker volume plugins enable Docker deployments to be integrated with external Docker volume plugins enable Docker deployments to be integrated with external
storage systems, such as Amazon EBS, and enable data volumes to persist beyond storage systems, such as Amazon EBS, and enable data volumes to persist beyond
the lifetime of a single Docker host. See the [plugin documentation](/extend/plugins) the lifetime of a single Docker host. See the [plugin documentation](plugins.md)
for more information. for more information.
# Command-line changes # Command-line changes

View File

@ -18,11 +18,11 @@ instructions in succession.
This page describes the commands you can use in a `Dockerfile`. When you are This page describes the commands you can use in a `Dockerfile`. When you are
done reading this page, refer to the [`Dockerfile` Best done reading this page, refer to the [`Dockerfile` Best
Practices](/articles/dockerfile_best-practices) for a tip-oriented guide. Practices](../articles/dockerfile_best-practices.md) for a tip-oriented guide.
## Usage ## Usage
The [`docker build`](/reference/commandline/build/) command builds an image from The [`docker build`](commandline/build.md) command builds an image from
a `Dockerfile` and a *context*. The build's context is the files at a specified a `Dockerfile` and a *context*. The build's context is the files at a specified
location `PATH` or `URL`. The `PATH` is a directory on your local filesystem. location `PATH` or `URL`. The `PATH` is a directory on your local filesystem.
The `URL` is a the location of a Git repository. The `URL` is a the location of a Git repository.
@ -75,7 +75,7 @@ instructions.
Whenever possible, Docker will re-use the intermediate images (cache), Whenever possible, Docker will re-use the intermediate images (cache),
to accelerate the `docker build` process significantly. This is indicated by to accelerate the `docker build` process significantly. This is indicated by
the `Using cache` message in the console output. the `Using cache` message in the console output.
(For more information, see the [Build cache section](/articles/dockerfile_best-practices/#build-cache)) in the (For more information, see the [Build cache section](../articles/dockerfile_best-practices.md#build-cache)) in the
`Dockerfile` best practices guide: `Dockerfile` best practices guide:
$ docker build -t SvenDowideit/ambassador . $ docker build -t SvenDowideit/ambassador .
@ -92,7 +92,7 @@ the `Using cache` message in the console output.
Successfully built 1a5ffc17324d Successfully built 1a5ffc17324d
When you're done with your build, you're ready to look into [*Pushing a When you're done with your build, you're ready to look into [*Pushing a
repository to its registry*]( /userguide/dockerrepos/#contributing-to-docker-hub). repository to its registry*](../userguide/dockerrepos.md#contributing-to-docker-hub).
## Format ## Format
@ -106,7 +106,7 @@ be UPPERCASE in order to distinguish them from arguments more easily.
Docker runs the instructions in a `Dockerfile` in order. **The Docker runs the instructions in a `Dockerfile` in order. **The
first instruction must be \`FROM\`** in order to specify the [*Base first instruction must be \`FROM\`** in order to specify the [*Base
Image*](/reference/glossary/#base-image) from which you are building. Image*](glossary.md#base-image) from which you are building.
Docker will treat lines that *begin* with `#` as a Docker will treat lines that *begin* with `#` as a
comment. A `#` marker anywhere else in the line will comment. A `#` marker anywhere else in the line will
@ -283,11 +283,10 @@ Or
FROM <image>@<digest> FROM <image>@<digest>
The `FROM` instruction sets the [*Base Image*](/reference/glossary/#base-image) The `FROM` instruction sets the [*Base Image*](glossary.md#base-image)
for subsequent instructions. As such, a valid `Dockerfile` must have `FROM` as for subsequent instructions. As such, a valid `Dockerfile` must have `FROM` as
its first instruction. The image can be any valid image it is especially easy its first instruction. The image can be any valid image it is especially easy
to start by **pulling an image** from the [*Public Repositories*]( to start by **pulling an image** from the [*Public Repositories*](../userguide/dockerrepos.md).
/userguide/dockerrepos).
- `FROM` must be the first non-comment instruction in the `Dockerfile`. - `FROM` must be the first non-comment instruction in the `Dockerfile`.
@ -358,7 +357,7 @@ cache for `RUN` instructions can be invalidated by using the `--no-cache`
flag, for example `docker build --no-cache`. flag, for example `docker build --no-cache`.
See the [`Dockerfile` Best Practices See the [`Dockerfile` Best Practices
guide](/articles/dockerfile_best-practices/#build-cache) for more information. guide](../articles/dockerfile_best-practices.md#build-cache) for more information.
The cache for `RUN` instructions can be invalidated by `ADD` instructions. See The cache for `RUN` instructions can be invalidated by `ADD` instructions. See
[below](#add) for details. [below](#add) for details.
@ -488,14 +487,14 @@ To view an image's labels, use the `docker inspect` command.
The `EXPOSE` instructions informs Docker that the container will listen on the The `EXPOSE` instructions informs Docker that the container will listen on the
specified network ports at runtime. Docker uses this information to interconnect specified network ports at runtime. Docker uses this information to interconnect
containers using links (see the [Docker User containers using links (see the [Docker User
Guide](/userguide/dockerlinks)) and to determine which ports to expose to the Guide](../userguide/dockerlinks.md) and to determine which ports to expose to the
host when [using the -P flag](/reference/run/#expose-incoming-ports). host when [using the -P flag](run.md#expose-incoming-ports).
> **Note**: > **Note**:
> `EXPOSE` doesn't define which ports can be exposed to the host or make ports > `EXPOSE` doesn't define which ports can be exposed to the host or make ports
> accessible from the host by default. To expose ports to the host, at runtime, > accessible from the host by default. To expose ports to the host, at runtime,
> [use the `-p` flag](/userguide/dockerlinks) or > [use the `-p` flag](../userguide/dockerlinks.md) or
> [the -P flag](/reference/run/#expose-incoming-ports). > [the -P flag](run.md#expose-incoming-ports).
## ENV ## ENV
@ -595,7 +594,7 @@ of whether or not the file has changed and the cache should be updated.
> following instructions from the Dockerfile if the contents of `<src>` have > following instructions from the Dockerfile if the contents of `<src>` have
> changed. This includes invalidating the cache for `RUN` instructions. > changed. This includes invalidating the cache for `RUN` instructions.
> See the [`Dockerfile` Best Practices > See the [`Dockerfile` Best Practices
guide](/articles/dockerfile_best-practices/#build-cache) for more information. guide](../articles/dockerfile_best-practices.md#build-cache) for more information.
`ADD` obeys the following rules: `ADD` obeys the following rules:
@ -938,7 +937,7 @@ containers. The value can be a JSON array, `VOLUME ["/var/log/"]`, or a plain
string with multiple arguments, such as `VOLUME /var/log` or `VOLUME /var/log string with multiple arguments, such as `VOLUME /var/log` or `VOLUME /var/log
/var/db`. For more information/examples and mounting instructions via the /var/db`. For more information/examples and mounting instructions via the
Docker client, refer to Docker client, refer to
[*Share Directories via Volumes*](/userguide/dockervolumes/#mount-a-host-directory-as-a-data-volume) [*Share Directories via Volumes*](../userguide/dockervolumes.md#mount-a-host-directory-as-a-data-volume)
documentation. documentation.
The `docker run` command initializes the newly created volume with any data The `docker run` command initializes the newly created volume with any data
@ -1191,7 +1190,7 @@ or a signal name in the format SIGNAME, for instance SIGKILL.
## Dockerfile examples ## Dockerfile examples
Below you can see some examples of Dockerfile syntax. If you're interested in Below you can see some examples of Dockerfile syntax. If you're interested in
something more realistic, take a look at the list of [Dockerization examples](/examples/). something more realistic, take a look at the list of [Dockerization examples](../examples/).
``` ```
# Nginx # Nginx

View File

@ -37,7 +37,7 @@ parent = "smn_cli"
Builds Docker images from a Dockerfile and a "context". A build's context is Builds Docker images from a Dockerfile and a "context". A build's context is
the files located in the specified `PATH` or `URL`. The build process can refer the files located in the specified `PATH` or `URL`. The build process can refer
to any of the files in the context. For example, your build can use an to any of the files in the context. For example, your build can use an
[*ADD*](/reference/builder/#add) instruction to reference a file in the [*ADD*](../builder.md#add) instruction to reference a file in the
context. context.
The `URL` parameter can specify the location of a Git repository; the repository The `URL` parameter can specify the location of a Git repository; the repository
@ -93,7 +93,7 @@ In most cases, it's best to put each Dockerfile in an empty directory. Then,
add to that directory only the files needed for building the Dockerfile. To add to that directory only the files needed for building the Dockerfile. To
increase the build's performance, you can exclude files and directories by increase the build's performance, you can exclude files and directories by
adding a `.dockerignore` file to that directory as well. For information on adding a `.dockerignore` file to that directory as well. For information on
creating one, see the [.dockerignore file](/reference/builder#dockerignore-file). creating one, see the [.dockerignore file](../builder.md#dockerignore-file).
If the Docker client loses connection to the daemon, the build is canceled. If the Docker client loses connection to the daemon, the build is canceled.
This happens if you interrupt the Docker client with `ctrl-c` or if the Docker This happens if you interrupt the Docker client with `ctrl-c` or if the Docker
@ -124,7 +124,7 @@ There should be informational output of the reason for failure output to
See also: See also:
[*Dockerfile Reference*](/reference/builder). [*Dockerfile Reference*](../builder.md).
## Examples ## Examples
@ -160,7 +160,7 @@ where to find the files for the "context" of the build on the Docker daemon.
Remember that the daemon could be running on a remote machine and that no Remember that the daemon could be running on a remote machine and that no
parsing of the Dockerfile happens at the client side (where you're running parsing of the Dockerfile happens at the client side (where you're running
`docker build`). That means that *all* the files at `PATH` get sent, not just `docker build`). That means that *all* the files at `PATH` get sent, not just
the ones listed to [*ADD*](/reference/builder/#add) in the Dockerfile. the ones listed to [*ADD*](../builder.md#add) in the Dockerfile.
The transfer of context from the local machine to the Docker daemon is what the The transfer of context from the local machine to the Docker daemon is what the
`docker` client means when you see the "Sending build context" message. `docker` client means when you see the "Sending build context" message.
@ -191,7 +191,7 @@ you must use `--rm=false`. This does not affect the build cache.
This example shows the use of the `.dockerignore` file to exclude the `.git` This example shows the use of the `.dockerignore` file to exclude the `.git`
directory from the context. Its effect can be seen in the changed size of the directory from the context. Its effect can be seen in the changed size of the
uploaded context. The builder reference contains detailed information on uploaded context. The builder reference contains detailed information on
[creating a .dockerignore file](../../builder/#dockerignore-file) [creating a .dockerignore file](../builder.md#dockerignore-file)
$ docker build -t vieux/apache:2.0 . $ docker build -t vieux/apache:2.0 .
@ -250,11 +250,11 @@ the command line.
When `docker build` is run with the `--cgroup-parent` option the containers When `docker build` is run with the `--cgroup-parent` option the containers
used in the build will be run with the [corresponding `docker run` used in the build will be run with the [corresponding `docker run`
flag](/reference/run/#specifying-custom-cgroups). flag](../run.md#specifying-custom-cgroups).
Using the `--ulimit` option with `docker build` will cause each build step's Using the `--ulimit` option with `docker build` will cause each build step's
container to be started using those [`--ulimit` container to be started using those [`--ulimit`
flag values](/reference/run/#setting-ulimits-in-a-container). flag values](../run.md#setting-ulimits-in-a-container).
You can use `ENV` instructions in a Dockerfile to define variable You can use `ENV` instructions in a Dockerfile to define variable
values. These values persist in the built image. However, often values. These values persist in the built image. However, often
@ -273,4 +273,4 @@ Dockerfile. Also, these values don't persist in the intermediate or final images
like `ENV` values do. like `ENV` values do.
For detailed information on using `ARG` and `ENV` instructions, see the For detailed information on using `ARG` and `ENV` instructions, see the
[Dockerfile reference](/reference/builder). [Dockerfile reference](../builder.md).

View File

@ -31,7 +31,7 @@ each `docker` command with `sudo`. To avoid having to use `sudo` with the
`docker` and add users to it. `docker` and add users to it.
For more information about installing Docker or `sudo` configuration, refer to For more information about installing Docker or `sudo` configuration, refer to
the [installation](/installation) instructions for your operating system. the [installation](../../installation) instructions for your operating system.
## Environment variables ## Environment variables
@ -98,7 +98,7 @@ The property `psFormat` specifies the default format for `docker ps` output.
When the `--format` flag is not provided with the `docker ps` command, When the `--format` flag is not provided with the `docker ps` command,
Docker's client uses this property. If this property is not set, the client Docker's client uses this property. If this property is not set, the client
falls back to the default table format. For a list of supported formatting falls back to the default table format. For a list of supported formatting
directives, see the [**Formatting** section in the `docker ps` documentation](../ps) directives, see the [**Formatting** section in the `docker ps` documentation](ps.md)
Following is a sample `config.json` file: Following is a sample `config.json` file:

View File

@ -83,8 +83,7 @@ This is useful when you want to set up a container configuration ahead of time
so that it is ready to start when you need it. The initial status of the so that it is ready to start when you need it. The initial status of the
new container is `created`. new container is `created`.
Please see the [run command](/reference/commandline/run) section and the [Docker run reference]( Please see the [run command](run.md) section and the [Docker run reference](run.md) for more details.
/reference/run/) for more details.
## Examples ## Examples

View File

@ -73,7 +73,7 @@ To run the daemon with debug output, use `docker daemon -D`.
## Daemon socket option ## Daemon socket option
The Docker daemon can listen for [Docker Remote API](/reference/api/docker_remote_api/) The Docker daemon can listen for [Docker Remote API](../api/docker_remote_api.md)
requests via three different types of Socket: `unix`, `tcp`, and `fd`. requests via three different types of Socket: `unix`, `tcp`, and `fd`.
By default, a `unix` domain socket (or IPC socket) is created at By default, a `unix` domain socket (or IPC socket) is created at
@ -83,7 +83,7 @@ membership.
If you need to access the Docker daemon remotely, you need to enable the `tcp` If you need to access the Docker daemon remotely, you need to enable the `tcp`
Socket. Beware that the default setup provides un-encrypted and Socket. Beware that the default setup provides un-encrypted and
un-authenticated direct access to the Docker daemon - and should be secured un-authenticated direct access to the Docker daemon - and should be secured
either using the [built in HTTPS encrypted socket](/articles/https/), or by either using the [built in HTTPS encrypted socket](../../articles/https/), or by
putting a secure web proxy in front of it. You can listen on port `2375` on all putting a secure web proxy in front of it. You can listen on port `2375` on all
network interfaces with `-H tcp://0.0.0.0:2375`, or on a particular network network interfaces with `-H tcp://0.0.0.0:2375`, or on a particular network
interface using its IP address: `-H tcp://192.168.59.103:2375`. It is interface using its IP address: `-H tcp://192.168.59.103:2375`. It is

View File

@ -23,7 +23,7 @@ the container, `docker export` will export the contents of the *underlying*
directory, not the contents of the volume. directory, not the contents of the volume.
Refer to [Backup, restore, or migrate data Refer to [Backup, restore, or migrate data
volumes](/userguide/dockervolumes/#backup-restore-or-migrate-data-volumes) in volumes](../../userguide/dockervolumes.md#backup-restore-or-migrate-data-volumes) in
the user guide for examples on exporting data in a volume. the user guide for examples on exporting data in a volume.
## Examples ## Examples

View File

@ -12,74 +12,74 @@ parent = "mn_reference"
# The Docker commands # The Docker commands
This section contains reference information on using Docker's command line client. Each command has a reference page along with samples. If you are unfamiliar with the command line, you should start by reading about how to ["Use the Docker command line"](cli). This section contains reference information on using Docker's command line client. Each command has a reference page along with samples. If you are unfamiliar with the command line, you should start by reading about how to ["Use the Docker command line"](cli.md).
You start the Docker daemon with the command line. How you start the daemon affects your Docker containers. For that reason you should also make sure to read the [`daemon`](daemon) reference page. You start the Docker daemon with the command line. How you start the daemon affects your Docker containers. For that reason you should also make sure to read the [`daemon`](daemon.md) reference page.
### Docker management commands ### Docker management commands
* [daemon](daemon) * [daemon](daemon.md)
* [info](info) * [info](info.md)
* [inspect](inspect) * [inspect](inspect.md)
* [version](version) * [version](version.md)
### Image commands ### Image commands
* [build](build) * [build](build.md)
* [commit](commit) * [commit](commit.md)
* [export](export) * [export](export.md)
* [history](history) * [history](history.md)
* [images](images) * [images](images.md)
* [import](import) * [import](import.md)
* [load](load) * [load](load.md)
* [rmi](rmi) * [rmi](rmi.md)
* [save](save) * [save](save.md)
* [tag](tag) * [tag](tag.md)
### Container commands ### Container commands
* [attach](attach) * [attach](attach.md)
* [cp](cp) * [cp](cp.md)
* [create](create) * [create](create.md)
* [diff](diff) * [diff](diff.md)
* [events](events) * [events](events.md)
* [exec](exec) * [exec](exec.md)
* [kill](kill) * [kill](kill.md)
* [logs](logs) * [logs](logs.md)
* [pause](pause) * [pause](pause.md)
* [port](port) * [port](port.md)
* [ps](ps) * [ps](ps.md)
* [rename](rename) * [rename](rename.md)
* [restart](restart) * [restart](restart.md)
* [rm](rm) * [rm](rm.md)
* [run](run) * [run](run.md)
* [start](start) * [start](start.md)
* [stats](stats) * [stats](stats.md)
* [stop](stop) * [stop](stop.md)
* [top](top) * [top](top.md)
* [unpause](unpause) * [unpause](unpause.md)
* [wait](wait) * [wait](wait.md)
### Hub and registry commands ### Hub and registry commands
* [login](login) * [login](login.md)
* [logout](logout) * [logout](logout.md)
* [pull](pull) * [pull](pull.md)
* [push](push) * [push](push.md)
* [search](search) * [search](search.md)
### Network and connectivity commands ### Network and connectivity commands
* [network_connect](network_connect) * [network_connect](network_connect.md)
* [network_create](network_create) * [network_create](network_create.md)
* [network_disconnect](network_disconnect) * [network_disconnect](network_disconnect.md)
* [network_inspect](network_inspect) * [network_inspect](network_inspect.md)
* [network_ls](network_ls) * [network_ls](network_ls.md)
* [network_rm](network_rm) * [network_rm](network_rm.md)
### Shared data volume commands ### Shared data volume commands
* [volume_create](volume_create) * [volume_create](volume_create.md)
* [volume_inspect](volume_inspect) * [volume_inspect](volume_inspect.md)
* [volume_ls](volume_ls) * [volume_ls](volume_ls.md)
* [volume_rm](volume_rm) * [volume_rm](volume_rm.md)

View File

@ -81,13 +81,12 @@ specified image, and then `starts` it using the specified command. That is,
previous changes intact using `docker start`. See `docker ps -a` to view a list previous changes intact using `docker start`. See `docker ps -a` to view a list
of all containers. of all containers.
There is detailed information about `docker run` in the [Docker run reference]( There is detailed information about `docker run` in the [Docker run reference](run.md).
/reference/run/).
The `docker run` command can be used in combination with `docker commit` to The `docker run` command can be used in combination with `docker commit` to
[*change the command that a container runs*](/reference/commandline/commit). [*change the command that a container runs*](commit.md).
See the [Docker User Guide](/userguide/dockerlinks/) for more detailed See the [Docker User Guide](../../userguide/dockerlinks.md) for more detailed
information about the `--expose`, `-p`, `-P` and `--link` parameters, information about the `--expose`, `-p`, `-P` and `--link` parameters,
and linking containers. and linking containers.
@ -170,14 +169,14 @@ manipulate the host's Docker daemon.
$ docker run -p 127.0.0.1:80:8080 ubuntu bash $ docker run -p 127.0.0.1:80:8080 ubuntu bash
This binds port `8080` of the container to port `80` on `127.0.0.1` of This binds port `8080` of the container to port `80` on `127.0.0.1` of
the host machine. The [Docker User Guide](/userguide/dockerlinks/) the host machine. The [Docker User Guide](../../userguide/dockerlinks.md)
explains in detail how to manipulate ports in Docker. explains in detail how to manipulate ports in Docker.
$ docker run --expose 80 ubuntu bash $ docker run --expose 80 ubuntu bash
This exposes port `80` of the container for use within a link without This exposes port `80` of the container for use within a link without
publishing the port to the host system's interfaces. The [Docker User publishing the port to the host system's interfaces. The [Docker User
Guide](/userguide/dockerlinks) explains in detail how to manipulate Guide](../../userguide/dockerlinks.md) explains in detail how to manipulate
ports in Docker. ports in Docker.
$ docker run -e MYVAR1 --env MYVAR2=foo --env-file ./env.list ubuntu bash $ docker run -e MYVAR1 --env MYVAR2=foo --env-file ./env.list ubuntu bash
@ -279,7 +278,7 @@ format:
You can load multiple label-files by supplying multiple `--label-file` flags. You can load multiple label-files by supplying multiple `--label-file` flags.
For additional information on working with labels, see [*Labels - custom For additional information on working with labels, see [*Labels - custom
metadata in Docker*](/userguide/labels-custom-metadata/) in the Docker User metadata in Docker*](../../userguide/labels-custom-metadata.md) in the Docker User
Guide. Guide.
$ docker run --link /redis:redis --name console ubuntu bash $ docker run --link /redis:redis --name console ubuntu bash
@ -466,7 +465,7 @@ This will run the `redis` container with a restart policy of **always**
so that if the container exits, Docker will restart it. so that if the container exits, Docker will restart it.
More detailed information on restart policies can be found in the More detailed information on restart policies can be found in the
[Restart Policies (--restart)](/reference/run/#restart-policies-restart) [Restart Policies (--restart)](../run.md#restart-policies-restart)
section of the Docker run reference page. section of the Docker run reference page.
## Adding entries to a container hosts file ## Adding entries to a container hosts file

View File

@ -21,7 +21,7 @@ parent = "smn_cli"
Search [Docker Hub](https://hub.docker.com) for images Search [Docker Hub](https://hub.docker.com) for images
See [*Find Public Images on Docker Hub*](/userguide/dockerrepos/#searching-for-images) for See [*Find Public Images on Docker Hub*](../../userguide/dockerrepos.md#searching-for-images) for
more details on finding shared images from the command line. more details on finding shared images from the command line.
> **Note:** > **Note:**

View File

@ -18,4 +18,4 @@ parent = "smn_cli"
--help=false Print usage --help=false Print usage
You can group your images together using names and tags, and then upload them You can group your images together using names and tags, and then upload them
to [*Share Images via Repositories*](/userguide/dockerrepos/#contributing-to-docker-hub). to [*Share Images via Repositories*](../../userguide/dockerrepos.md#contributing-to-docker-hub).

View File

@ -1,6 +1,6 @@
<!--[metadata]> <!--[metadata]>
+++ +++
title = "ps" title = "volume rm"
description = "the volume rm command description and usage" description = "the volume rm command description and usage"
keywords = ["volume, rm"] keywords = ["volume, rm"]
[menu.main] [menu.main]

View File

@ -31,7 +31,7 @@ The basic `docker run` command takes this form:
$ docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG...] $ docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG...]
The `docker run` command must specify an [*IMAGE*](/reference/glossary/#image) The `docker run` command must specify an [*IMAGE*](glossary.md#image)
to derive the container from. An image developer can define image to derive the container from. An image developer can define image
defaults related to: defaults related to:
@ -45,11 +45,11 @@ With the `docker run [OPTIONS]` an operator can add to or override the
image defaults set by a developer. And, additionally, operators can image defaults set by a developer. And, additionally, operators can
override nearly all the defaults set by the Docker runtime itself. The override nearly all the defaults set by the Docker runtime itself. The
operator's ability to override image and Docker runtime defaults is why operator's ability to override image and Docker runtime defaults is why
[*run*](/reference/commandline/cli/run/) has more options than any [*run*](commandline/run.md) has more options than any
other `docker` command. other `docker` command.
To learn how to interpret the types of `[OPTIONS]`, see [*Option To learn how to interpret the types of `[OPTIONS]`, see [*Option
types*](/reference/commandline/cli/#option-types). types*](commandline/cli.md#option-types).
> **Note**: Depending on your Docker system configuration, you may be > **Note**: Depending on your Docker system configuration, you may be
> required to preface the `docker run` command with `sudo`. To avoid > required to preface the `docker run` command with `sudo`. To avoid
@ -110,7 +110,7 @@ volumes. These are required because the container is no longer listening to the
command line where `docker run` was run. command line where `docker run` was run.
To reattach to a detached container, use `docker` To reattach to a detached container, use `docker`
[*attach*](/reference/commandline/attach) command. [*attach*](commandline/attach.md) command.
### Foreground ### Foreground
@ -159,7 +159,7 @@ The UUID identifiers come from the Docker daemon, and if you do not
assign a name to the container with `--name` then the daemon will also assign a name to the container with `--name` then the daemon will also
generate a random string name too. The name can become a handy way to generate a random string name too. The name can become a handy way to
add meaning to a container since you can use this name when defining add meaning to a container since you can use this name when defining
[*links*](/userguide/dockerlinks) (or any [*links*](../userguide/dockerlinks.md) (or any
other place you need to identify a container). This works for both other place you need to identify a container). This works for both
background and foreground Docker containers. background and foreground Docker containers.
@ -404,8 +404,8 @@ Using the `--restart` flag on Docker run you can specify a restart policy for
how a container should or should not be restarted on exit. how a container should or should not be restarted on exit.
When a restart policy is active on a container, it will be shown as either `Up` When a restart policy is active on a container, it will be shown as either `Up`
or `Restarting` in [`docker ps`](/reference/commandline/ps). It can also be or `Restarting` in [`docker ps`](commandline/ps.md). It can also be
useful to use [`docker events`](/reference/commandline/events) to see the useful to use [`docker events`](commandline/events.md) to see the
restart policy in effect. restart policy in effect.
Docker supports the following restart policies: Docker supports the following restart policies:
@ -469,8 +469,7 @@ for at least 10 seconds), the delay is reset to its default value of 100 ms.
You can specify the maximum amount of times Docker will try to restart the You can specify the maximum amount of times Docker will try to restart the
container when using the **on-failure** policy. The default is that Docker container when using the **on-failure** policy. The default is that Docker
will try forever to restart the container. The number of (attempted) restarts will try forever to restart the container. The number of (attempted) restarts
for a container can be obtained via [`docker inspect`]( for a container can be obtained via [`docker inspect`](commandline/inspect.md). For example, to get the number of restarts
/reference/commandline/inspect). For example, to get the number of restarts
for container "my-container"; for container "my-container";
$ docker inspect -f "{{ .RestartCount }}" my-container $ docker inspect -f "{{ .RestartCount }}" my-container
@ -1076,12 +1075,12 @@ container's logging driver. The following options are supported:
The `docker logs` command is available only for the `json-file` and `journald` The `docker logs` command is available only for the `json-file` and `journald`
logging drivers. For detailed information on working with logging drivers, see logging drivers. For detailed information on working with logging drivers, see
[Configure a logging driver](/reference/logging/overview/). [Configure a logging driver](logging/overview.md).
## Overriding Dockerfile image defaults ## Overriding Dockerfile image defaults
When a developer builds an image from a [*Dockerfile*](/reference/builder) When a developer builds an image from a [*Dockerfile*](builder.md)
or when she commits it, the developer can set a number of default parameters or when she commits it, the developer can set a number of default parameters
that take effect when the image starts up as a container. that take effect when the image starts up as a container.
@ -1192,7 +1191,7 @@ then the client container can access the exposed port via a private
networking interface. Docker will set some environment variables in the networking interface. Docker will set some environment variables in the
client container to help indicate which interface and port to use. For client container to help indicate which interface and port to use. For
more information on linking, see [the guide on linking container more information on linking, see [the guide on linking container
together](/userguide/dockerlinks/) together](../userguide/dockerlinks.md)
### ENV (environment variables) ### ENV (environment variables)
@ -1230,7 +1229,7 @@ variables automatically:
The container may also include environment variables defined The container may also include environment variables defined
as a result of the container being linked with another container. See as a result of the container being linked with another container. See
the [*Container Links*](/userguide/dockerlinks/#connect-with-the-linking-system) the [*Container Links*](../userguide/dockerlinks.md#connect-with-the-linking-system)
section for more details. section for more details.
Additionally, the operator can **set any environment variable** in the Additionally, the operator can **set any environment variable** in the
@ -1317,11 +1316,11 @@ container's `/etc/hosts` entry will be automatically updated.
--volumes-from="": Mount all volumes from the given container(s) --volumes-from="": Mount all volumes from the given container(s)
> **Note**: > **Note**:
> The auto-creation of the host path has been [*deprecated*](/misc/deprecated/#auto-creating-missing-host-paths-for-bind-mounts). > The auto-creation of the host path has been [*deprecated*](../misc/deprecated.md#auto-creating-missing-host-paths-for-bind-mounts).
The volumes commands are complex enough to have their own documentation The volumes commands are complex enough to have their own documentation
in section [*Managing data in in section [*Managing data in
containers*](/userguide/dockervolumes). A developer can define containers*](../userguide/dockervolumes.md). A developer can define
one or more `VOLUME`'s associated with an image, but only the operator one or more `VOLUME`'s associated with an image, but only the operator
can give access from one container to another (or from a container to a can give access from one container to another (or from a container to a
volume mounted on the host). volume mounted on the host).