![Docker for mac nfs mount](https://cdn-ak.f.st-hatena.com/images/fotolife/g/greathigh-power/20200126/20200126194444.jpg)
![docker for mac nfs mount docker for mac nfs mount](https://www.cyberciti.biz/media/new/faq/2010/10/Screen-shot-2010-10-17-at-4.31.46-PM.png)
Verify that the test file is on the local path: $ ls /data/docker-volumes/ Now, create a test file on our NFS export: $ touch /mnt/file.txt Verify that the mount is showing: $ df -hįilesystem Size Used Avail Use% Mounted on
![docker for mac nfs mount docker for mac nfs mount](https://blog.hypriot.com/images/first-touch-down-with-docker-for-mac/docker4mac-apply-for-beta.jpg)
![docker for mac nfs mount docker for mac nfs mount](https://deciphertools.com/blog/img/macos-no-mountable-file-systems/no-mountable-file-systems-2x.png)
Now let's mount our NFS mount to our local path: /mnt: $ sudo mount -v -o vers=4,loud 192.168.0.4:/ /mnt
#DOCKER FOR MAC NFS MOUNT INSTALL#
To test our NFS Server, let's install the NFS client to our host: $ sudo apt install nfs-client -y Image: itsthenetwork/nfs-server-alpine:12īoot the container: $ docker-compose up -d Next, create the docker-compose.yml version: "2.1" I'm assuming that you have docker and docker-compose installed.Ĭreate the local directory: $ mkdir -p /data/docker-volumes On our host we will use the local path: /data/docker-volumes to mount inside the container to /data and expose the port 2049 from the container to the host. If you would like to install NFS Server using a non-docker based deployment, you can have a look at installing nfs server on ubuntu Overview In this post we will see how quick and fast it is to setup a NFS Server using a Docker container using itsthenetwork/nfs-server-alpine.
![Docker for mac nfs mount](https://cdn-ak.f.st-hatena.com/images/fotolife/g/greathigh-power/20200126/20200126194444.jpg)