From 4bc16ecf3d842a22ef50edc3391323f19e979dcc Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 7 Apr 2017 21:51:59 +0100 Subject: [PATCH] corrected ZFS storage driver documentation when running under systemd (#2621) --- engine/userguide/storagedriver/zfs-driver.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/engine/userguide/storagedriver/zfs-driver.md b/engine/userguide/storagedriver/zfs-driver.md index 701da35b4a..f4834a39ec 100644 --- a/engine/userguide/storagedriver/zfs-driver.md +++ b/engine/userguide/storagedriver/zfs-driver.md @@ -247,6 +247,19 @@ Once ZFS is installed and loaded, you're ready to configure ZFS for Docker. `--storage-driver=zfs` flag to the `dockerd` command, or to the `DOCKER_OPTS` line in the Docker config file. + If your distribution uses Systemd, the method of forcing the Docker daemon to + use the `zfs` driver differs slightly. You will need to edit your + [daemon config file]((https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file)), + which is located at `/etc/docker/daemon.json`. Add (or alter) the following line. + + {"storage-driver": "zfs"} + + Note that this must be valid JSON. + + Now restart the Docker daemon. + + $ sudo systemctl restart docker + 6. Verify that the daemon is using the `zfs` storage driver. $ sudo docker info