How to mount a folder in a machine to a docker container in another machine?

45 views Asked by At

I have a running docker container that uses volume mounting and NFS to store data in another machine.

Now I want to map this volume to a new folder in the filesystem of a new machine.

shall I do bind mounting in the container to the new VM location like this <VM_IP>:/path_to_folder is that possible?

or is there a way to make the existing volume always uses that new folder as a reference instead of the NFS?

Thank you!

0

There are 0 answers