Mount NFS drive portainer Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
jappish
Posts: 4
Joined: Wed May 01, 2019 1:48 am

Mount NFS drive portainer

Post by jappish »

I guess I'm getting confused by all the layers in my setup, hopefully someone can help me figure this out.

Ok, so I'm running docker and portainer on a dietpi thats running in a VM and I'm trying to mount my NFS drive that's on another server to a volume in Docker through portainer.

This is the volume setting in portainer: Image

This is the volume mount for the container: Image

And this is the error I'm getting when trying to deploy the container: Image

I'm pretty sure the error is due to the way portainer thinks that share is mounted here [img]https://i.imgur.com/mY6mPq9.png[/img ]or that it's fails to mount it.

Should I mount the NFS drive in dietpi first maybe? and then reference the container to the local folder where the share is mounted?
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Mount NFS drive portainer

Post by Joulinar »

I guess creating the volume, you would need to specify the NFS share export and not the mount point on your local DietPi system. The naming is a little bit misleading. Means, Mount Point is incorrect.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
jappish
Posts: 4
Joined: Wed May 01, 2019 1:48 am

Re: Mount NFS drive portainer

Post by jappish »

Thanks! /mnt/3TB was actually the mount point on the NFS server. The issue was that I didn't install nfs-utils, or nfs-common on the host (never actually mounted the drive in dietpi when I wrote my first post, just thought that I maybe could use that as a workaround).
Tried readding the share after I made sure that the host had nfs-common installed, and I can now access the share in the container.
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Mount NFS drive portainer

Post by Joulinar »

hehe, something even stated on your first picture. Good you solved it that way.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
jappish
Posts: 4
Joined: Wed May 01, 2019 1:48 am

Re: Mount NFS drive portainer

Post by jappish »

I know, right? I always keep forgetting that I'm an idiot :lol: :lol:
Post Reply