webssoftgo.blogg.se

Docker for mac nfs mount
Docker for mac nfs mount






docker for mac nfs mount

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

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