Add documentation for using overlay2

Add mention in dockerd command line and storage driver selection documentation.

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
Derek McGowan 2016-06-13 11:06:47 -07:00 committed by Tibor Vass
parent 0a0bb19a33
commit e7fa3c6279
2 changed files with 9 additions and 4 deletions

View File

@ -204,7 +204,7 @@ TCP and a Unix socket
### Daemon storage-driver option ### Daemon storage-driver option
The Docker daemon has support for several different image layer storage The Docker daemon has support for several different image layer storage
drivers: `aufs`, `devicemapper`, `btrfs`, `zfs` and `overlay`. drivers: `aufs`, `devicemapper`, `btrfs`, `zfs`, `overlay` and `overlay2`.
The `aufs` driver is the oldest, but is based on a Linux kernel patch-set that The `aufs` driver is the oldest, but is based on a Linux kernel patch-set that
is unlikely to be merged into the main kernel. These are also known to cause is unlikely to be merged into the main kernel. These are also known to cause
@ -242,9 +242,14 @@ Linux kernel as of [3.18.0](https://lkml.org/lkml/2014/10/26/137). Call
> inode consumption (especially as the number of images grows), as well as > inode consumption (especially as the number of images grows), as well as
> being incompatible with the use of RPMs. > being incompatible with the use of RPMs.
The `overlay2` uses the same fast union filesystem but takes advantage of
[additional features](https://lkml.org/lkml/2015/2/11/106) added in Linux
kernel 4.0 to avoid excessive inode consumption. Call `dockerd -s overlay2`
to use it.
> **Note:** > **Note:**
> It is currently unsupported on `btrfs` or any Copy on Write filesystem > Both `overlay` and `overlay2` are currently unsupported on `btrfs` or any
> and should only be used over `ext4` partitions. > Copy on Write filesystem and should only be used over `ext4` partitions.
### Storage driver options ### Storage driver options

View File

@ -226,7 +226,7 @@ output otherwise.
Force the Docker runtime to use a specific storage driver. Force the Docker runtime to use a specific storage driver.
**--selinux-enabled**=*true*|*false* **--selinux-enabled**=*true*|*false*
Enable selinux support. Default is false. SELinux does not presently support the overlay storage driver. Enable selinux support. Default is false. SELinux does not presently support either of the overlay storage drivers.
**--storage-opt**=[] **--storage-opt**=[]
Set storage driver options. See STORAGE DRIVER OPTIONS. Set storage driver options. See STORAGE DRIVER OPTIONS.