diff --git a/compose/compose-file/index.md b/compose/compose-file/index.md index 00691a9dd29b..9d5d9368b030 100644 --- a/compose/compose-file/index.md +++ b/compose/compose-file/index.md @@ -1924,7 +1924,7 @@ volumes: The long form syntax allows the configuration of additional fields that can't be expressed in the short form. -- `type`: the mount type `volume`, `bind` or `tmpfs` +- `type`: the mount type `volume`, `bind`, `tmpfs` or `npipe` - `source`: the source of the mount, a path on the host for a bind mount, or the name of a volume defined in the [top-level `volumes` key](#volume-configuration-reference). Not applicable for a tmpfs mount. diff --git a/storage/index.md b/storage/index.md index a82609311a1f..9c6fc311e241 100644 --- a/storage/index.md +++ b/storage/index.md @@ -22,6 +22,7 @@ container layer. This means that: Docker has two options for containers to store files in the host machine, so that the files are persisted even after the container stops: _volumes_, and _bind mounts_. If you're running Docker on Linux you can also use a _tmpfs mount_. +If you're running Docker on Windows you can also use a _named pipe_. Keep reading for more information about these two ways of persisting data. @@ -100,6 +101,10 @@ mounts is to think about where the data lives on the Docker host. information. For instance, internally, swarm services use `tmpfs` mounts to mount [secrets](/engine/swarm/secrets.md) into a service's containers. +- **[named pipes](https://docs.microsoft.com/en-us/windows/desktop/ipc/named-pipes)**: An `npipe` + mount can be used for communication between the Docker host and a container. Common use case is + to run a third-party tool inside of a container and connect to the Docker Engine API using a named pipe. + Bind mounts and volumes can both be mounted into containers using the `-v` or `--volume` flag, but the syntax for each is slightly different. For `tmpfs` mounts, you can use the `--tmpfs` flag. However, in Docker 17.06 and higher,