Gandi/docker — pull request #7 by Mic92 (2014-11-29 08:33:14+00:00)
Title: Replace libzfs by zfs-utils + Rebase

- Use go-zfs for robust handling of the commandline interface
- implements complete driver interface including a native differ interface
- works on my machine(tm)
- should also works on non-linux platforms (go-zfs was primarily for freebsd)

**Usage** (a little bit more verbose for testers):
- the following lines can be tested without messing up your current docker setup
- replace zroot/docker with your preferred zfs dataset

```
$ git clone https://github.com/Mic92/docker
$ cd docker
$ make
root> zfs create -o com.sun:auto-snapshot=false zroot/docker
root> mkdir /var/lib/docker-zfs
root> bundles/1.3.2-dev/binary/docker -p /var/run/docker-zfs.pid -H tcp://127.0.0.1:2376 -s zfs --storage-opt zfs.fsname=zroot/docker -g /var/lib/docker-zfs -d -D
# spawn another shell and go to your favorite docker project and hit
$ export DOCKER_HOST=tcp://127.0.0.1:2376
$ bundles/1.3.2-dev/binary/docker --pidfile=/var/run/docker-zfs.pid -H unix:///var/run/docker-zfs.sock build .
```

Docker will also detect if `/var/lib/docker` is located on a zfs dataset and will use it.

Related to docker/docker#7901