Docker Community Forums

Share and learn in the Docker community.

Issues with Setting Path to use as the root of the Docker runtime on NFS Share


(Alex Rothberg) #1

docker service start yields a status of: docker dead but subsys locked and logs:

level=fatal msg="Error starting daemon: The database file is locked: database is locked" 

Right now I am starting with -g /shared/docker -p /var/run/docker.pid where /shared is an NFS mount. Is there any issue doing this?


(Andy Rothfusz) #2

This looks like a problem we had with an old version of docker: https://github.com/docker/docker/issues/9649
Could you give your version and host OS information?

Does the docker service start work with you use other directories with -g? i.e. have you isolated this to a problem with your NFS mount?


(Alex Rothberg) #3

-g with other directories that are not on NFS seem to work fine.

$ docker version
Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d
OS/Arch (client): linux/amd64
Server version: 1.7.1
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 786b29d
OS/Arch (server): linux/amd64
$ uname -a
Linux ip-10-1-3-233 2.6.32-504.16.2.el6.x86_64 #1 SMP Wed Apr 22 06:48:29 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

(Sven Dowideit) #4

The Docker daemon cannot run with its graph driver (ie, image and
containers) directory on NFS, CIFS or many other Filesystems.

please see
http://docs.docker.com/reference/commandline/daemon/#daemon-storage-driver-option
got a list of filesystems that are supported.

Sven

Docker Engineer
Ask me anything …
Brisbane, Australia (UTC+10)