Document quota support for VFS driver (#5560)

This commit is contained in:
Misty Stanley-Jones 2017-12-18 15:34:56 -08:00
parent e90fbae9e4
commit 2b68553bf4
1 changed files with 13 additions and 2 deletions

View File

@ -11,6 +11,8 @@ performance and more space used on disk than other storage drivers. However, it
is robust, stable, and works in every environment. It can also be used as a
mechanism to verify other storage back-ends against, in a testing environment.
Docker 17.12 and higher include support for quotas when using the VFS driver.
## Configure Docker with the `vfs` storage driver
1. Stop Docker.
@ -19,7 +21,7 @@ mechanism to verify other storage back-ends against, in a testing environment.
$ sudo systemctl stop docker
```
4. Edit `/etc/docker/daemon.json`. If it does not yet exist, create it. Assuming
2. Edit `/etc/docker/daemon.json`. If it does not yet exist, create it. Assuming
that the file was empty, add the following contents.
```json
@ -28,10 +30,19 @@ mechanism to verify other storage back-ends against, in a testing environment.
}
```
If you want to set a quota to control the maximum size the VFS storage
driver can use, set the `size` option on the `storage-drivers` key. Quotas
are only supported in Docker 17.12 CE and higher.
```json
{
"storage-opts": ["size=256M"]
}
```
Docker will not start if the `daemon.json` file contains badly-formed JSON.
5. Start Docker.
3. Start Docker.
```bash
$ sudo systemctl start docker