Skip to content

Commit

Permalink
Update zfs-driver.md
Browse files Browse the repository at this point in the history
Instruction how to limit container's size has been removed because this option doesn't work and prevent the docker service from starting up.

See moby/moby#33847 for bug description
  • Loading branch information
Harliff authored Jul 26, 2023
1 parent ea2aa6c commit 09677f8
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions storage/storagedriver/zfs-driver.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,26 +118,6 @@ the Docker host, and then add it to the `zpool` using the `zpool add` command:
$ sudo zpool add zpool-docker /dev/xvdh
```

### Limit a container's writable storage quota

If you want to implement a quota on a per-image/dataset basis, you can set the
`size` storage option to limit the amount of space a single container can use
for its writable layer.

Edit `/etc/docker/daemon.json` and add the following:

```json
{
"storage-driver": "zfs",
"storage-opts": ["size=256M"]
}
```

See all storage options for each storage driver in the
[daemon reference documentation](/engine/reference/commandline/dockerd/#daemon-storage-driver)

Save and close the file, and restart Docker.

## How the `zfs` storage driver works

ZFS uses the following objects:
Expand Down

0 comments on commit 09677f8

Please sign in to comment.