-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Cannot start Docker with zfs storage driver on Ubuntu 16.04 Xenial #28847
Description
Description
I try to get the Docker Engine work with zfs as its storage driver according to the official instructions but it's stuck to AUFS with ZFS as the backing file system.
Steps to reproduce the issue (on Digital Ocean):
- Provision a new Ubuntu 16.04 VM
- Set up ZFS as instructed at http://docs-stage.docker.com/engine/userguide/storagedriver/zfs-driver/
- Install the Docker Engine as instructed at https://docs.docker.com/engine/installation/linux/ubuntulinux
- Set
DOCKER_OPTS="--storage-driver=zfs"in/etc/default/dockerand restart Docker Engine withservice docker restart
Describe the results you received:
Docker Engine loads with AUFS storage driver (with zfs as the backing file system).
I expected the Docker Engine to load using
Describe the results you expected:
I expected the Docker Engine to start with zfs as its storage driver as described in http://docs-stage.docker.com/engine/userguide/storagedriver/zfs-driver/
Additional information you deem important:
I tried the following with no results:
- Stopping the Docker Engine (double checked that it stopped)
- Deleted everything in
/var/lib/docker(runrm -rf /var/lib/docker*) - Start Docker engine
Also worth mentioning that /var/lib/docker uses ZFS:
root@ubuntu-1gb-nyc1-01:~# df -h /var/lib/docker/
Filesystem Size Used Avail Use% Mounted on
zpool-docker/docker 9.7G 128K 9.7G 1% /var/lib/docker
Output of zfs list
NAME USED AVAIL REFER MOUNTPOINT
zpool-docker 202K 9.63G 19K /zpool-docker
zpool-docker/docker 122K 9.63G 122K /var/lib/docker
Output of docker version:
Client:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built: Wed Oct 26 22:01:48 2016
OS/Arch: linux/amd64
Server:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built: Wed Oct 26 22:01:48 2016
OS/Arch: linux/amd64
Output of docker info:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 1.12.3
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: zfs
Dirs: 0
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: host bridge null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: apparmor seccomp
Kernel Version: 4.4.0-47-generic
Operating System: Ubuntu 16.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 992.5 MiB
Name: ubuntu-1gb-nyc1-01
ID: Z6QZ:IDVT:EEDV:FWDV:LTNM:I3KS:6UYE:OQSU:HU3O:WFIT:V3Q7:ZIYP
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Insecure Registries:
127.0.0.0/8
Additional environment details (AWS, VirtualBox, physical, etc.):
I am using a 1GB 16.04.1 x64 DigitalOcean droplet with a 10GB block storage volume, as seen below
