mirror of https://github.com/docker/docs.git
Document quota support for VFS driver (#5560)
This commit is contained in:
parent
e90fbae9e4
commit
2b68553bf4
|
@ -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
|
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.
|
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
|
## Configure Docker with the `vfs` storage driver
|
||||||
|
|
||||||
1. Stop Docker.
|
1. Stop Docker.
|
||||||
|
@ -19,7 +21,7 @@ mechanism to verify other storage back-ends against, in a testing environment.
|
||||||
$ sudo systemctl stop docker
|
$ 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.
|
that the file was empty, add the following contents.
|
||||||
|
|
||||||
```json
|
```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.
|
Docker will not start if the `daemon.json` file contains badly-formed JSON.
|
||||||
|
|
||||||
5. Start Docker.
|
3. Start Docker.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo systemctl start docker
|
$ sudo systemctl start docker
|
||||||
|
|
Loading…
Reference in New Issue