Skip to content

Cannot start Docker with zfs storage driver on Ubuntu 16.04 Xenial #28847

@parisk

Description

@parisk

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):

  1. Provision a new Ubuntu 16.04 VM
  2. Set up ZFS as instructed at http://docs-stage.docker.com/engine/userguide/storagedriver/zfs-driver/
  3. Install the Docker Engine as instructed at https://docs.docker.com/engine/installation/linux/ubuntulinux
  4. Set DOCKER_OPTS="--storage-driver=zfs" in /etc/default/docker and restart Docker Engine with service 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:

  1. Stopping the Docker Engine (double checked that it stopped)
  2. Deleted everything in /var/lib/docker (run rm -rf /var/lib/docker*)
  3. 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

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions