newbie_starter
newbie_starter

Reputation: 43

NFS or mounting shares with docker

Docker newbie here trying to get a build environment working in a container with a NFS mount and not sure if this is doable?

Would this be the right thing to run so that the container would have continual access to the NFS mount within the container?

docker run -itv "NFS mount:container mount location" "container id"

Thanks in advance.

Upvotes: 4

Views: 3902

Answers (1)

waldemar
waldemar

Reputation: 11

I see the same problem with docker 1.3.2. The nfs mounted volume only shows one subdirectory and creating files in there does not show on the nfs share. Instead, it shows up on the local file system. This can be seen after unmounting nfs share.

However, things work just fine with docker 1.1.2 or 1.4.1, and probably a number of others.

In short: upgrade docker to 1.4.1

Upvotes: 1

Related Questions