Skip to content

Commit 2b68553

Browse files
author
Misty Stanley-Jones
committed
Document quota support for VFS driver (#5560)
1 parent e90fbae commit 2b68553

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

engine/userguide/storagedriver/vfs-driver.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ performance and more space used on disk than other storage drivers. However, it
1111
is robust, stable, and works in every environment. It can also be used as a
1212
mechanism to verify other storage back-ends against, in a testing environment.
1313

14+
Docker 17.12 and higher include support for quotas when using the VFS driver.
15+
1416
## Configure Docker with the `vfs` storage driver
1517

1618
1. Stop Docker.
@@ -19,7 +21,7 @@ mechanism to verify other storage back-ends against, in a testing environment.
1921
$ sudo systemctl stop docker
2022
```
2123

22-
4. Edit `/etc/docker/daemon.json`. If it does not yet exist, create it. Assuming
24+
2. Edit `/etc/docker/daemon.json`. If it does not yet exist, create it. Assuming
2325
that the file was empty, add the following contents.
2426

2527
```json
@@ -28,10 +30,19 @@ mechanism to verify other storage back-ends against, in a testing environment.
2830
}
2931
```
3032

33+
If you want to set a quota to control the maximum size the VFS storage
34+
driver can use, set the `size` option on the `storage-drivers` key. Quotas
35+
are only supported in Docker 17.12 CE and higher.
36+
37+
```json
38+
{
39+
"storage-opts": ["size=256M"]
40+
}
41+
```
3142

3243
Docker will not start if the `daemon.json` file contains badly-formed JSON.
3344

34-
5. Start Docker.
45+
3. Start Docker.
3546

3647
```bash
3748
$ sudo systemctl start docker

0 commit comments

Comments
 (0)