I have an NFS partition on the host if I add it to a container with
docker run -i -t -v /srv/nfs4/dir:/mnt ubuntu
/ mnt will contain general data, but will it cause conflicts? Since it has not been installed with the nfs client?
Docker uses binding bindings to share host directories with containers. Docker handles namespace resolution so that the container can access mount. Otherwise, from a host perspective, the binding associated with the NFS share will only be available to another process. It is safe to bind the mount to an NFS file elsewhere on the file system. Using it from a Docker container is no different.
With Docker 1.7+, you can use Volume Plugin. See the Docker Volume Plugin section for more details .
Regarding NFS, you can use the Docker Netshare plugin , which handles massive NFS, CIFS, and AWS EFS file systems.
You need to share / srv / nfs4 / on your default docker machine. Go to virtual block> default (or boot2docker)> settings> Shared folder