Skip to content

Docker will not work in a eCryptFs mount #22577

Closed
@alethenorio

Description

@alethenorio

Output of docker version:

Client:
 Version:      1.11.1
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   5604cbe
 Built:        Tue Apr 26 23:38:55 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.11.1
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   5604cbe
 Built:        Tue Apr 26 23:38:55 2016
 OS/Arch:      linux/amd64

Output of docker info:

Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 1.11.1
Storage Driver: overlay
 Backing Filesystem: <unknown>
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins: 
 Volume: local
 Network: host bridge null
Kernel Version: 4.2.0-35-generic
Operating System: Ubuntu 15.10
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 15.58 GiB
Name: mymachine
ID: GKGG:HESC:P6F2:KQZK:TH2L:ZEFS:KCFG:SWVA:NIL4:SXI4:SCQG:XQT2
Docker Root Dir: /home/byteflinger/.docker
Debug mode (client): false
Debug mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support

Additional environment details (AWS, VirtualBox, physical, etc.):
Docker root dir is in a drive encrypted with eCryptFs

Steps to reproduce the issue:

  1. sudo mkdir /etc/systemd/system/docker.service.d
  2. sudo vim /etc/systemd/system/docker.service.d/docker.conf
  3. Insert the following data
[Service]
ExecStart=
ExecStart=/usr/bin/docker daemon --graph="/home/byteflinger/.docker" --storage-driver=devicemapper --dns 192.168.9.1 -H fd://
  1. sudo systemctl daemon-reload
  2. sudo systemctl restart docker

Describe the results you received:
I have changed dockers root dir from /var/lib/docker to a directory under my home folder due to space issues and then when I restarted docker and tried to pull an image I got some error. After a bit of searching I stumbled upon a docker comment about AUFS not working under ecryptfs (#19336 (comment)) so I tried changing to devicemapper however the moment I restart the docker service the restart command never comes back and the system starts getting filled until eventually I run out of disk space.
It seems a file called "data" gets created unde the devicemapper folder in docker's root dir and even though ls reports the file to be 0 bytes, du reports that directory to be the one taking all the space.

Describe the results you expected:
Docker to start normally using devicemapper

Additional information you deem important (e.g. issue happens only occasionally):
Able to reproduce every time

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