# Auto mount NFS for use by containers running on the same node

**URL:** <https://forums.suse.com/t/auto-mount-nfs-for-use-by-containers-running-on-the-same-node/5980>\
**Category:** RancherOS\
**Created:** [March 27, 2017, 8:08am UTC](https://forums.suse.com/t/auto-mount-nfs-for-use-by-containers-running-on-the-same-node/5980 "2017-03-27T08:08:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Fletcher](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/tim_fletcher/32/2323_2.png) [@Tim\_Fletcher](https://forums.suse.com/u/Tim_Fletcher)\
**Post date:** [March 27, 2017, 8:08am UTC](https://forums.suse.com/t/auto-mount-nfs-for-use-by-containers-running-on-the-same-node/5980/1 "2017-03-27T08:08:58Z")

</div>

Hi,

I may be going about this completely the wrong way, and would welcome anything to point me in the correct direction. However this is what I am trying to achieve.

I have a dedicated NFS server as part of my cluster, and would like to automatically mount some of the paths in /mnt as to be available to other containers running on the same node.

The info I have come across when Googling are  
[http://docs.rancher.com/os/storage/additional-mounts/](http://docs.rancher.com/os/storage/additional-mounts/)  
[http://docs.rancher.com/os/storage/using-zfs/](http://docs.rancher.com/os/storage/using-zfs/)

> [@Mounting external NFS shares on RancherOS nodes](http://forums.suse.com/t/mounting-external-nfs-shares-on-rancheros-nodes/62):
>
> Hi there, I’d like to mount an NFS location onto my rancher hosts to provide external storage/backup/etc. I’ve seen suggestions on how to do this on CoreOS (a systemd/fleet unit to start statd, another to mount the volume). However, any manual mount commands I run on the rancher node as a test seem to get permutations on “file not found” and the lack of the standard nfs client tools (rpcinfo etc) in rancheros suggest I’m doing something that was really not meant to be. I can mount the NFS shar…

However, I don’t see how this would apply to my situation.  
(I don’t know much about ZFS, or how it would fit in this context)

Could someone point to the appropriate link in the docs, or give me an example cloud-config.yml snippet?

Many thanks

---

<div class="post-metadata">

**Author:** ![joshwget](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/joshwget/32/704_2.png) [@joshwget](https://forums.suse.com/u/joshwget)\
**Post date:** [March 28, 2017, 6:10pm UTC](https://forums.suse.com/t/auto-mount-nfs-for-use-by-containers-running-on-the-same-node/5980/2 "2017-03-28T18:10:18Z")

</div>

Can you walk through a few specific use cases? It sounds like you probably want storage orchestration from something like Rancher, but I just want to make sure.

---

<div class="post-metadata">

**Author:** ![Tim\_Fletcher](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/tim_fletcher/32/2323_2.png) [@Tim\_Fletcher](https://forums.suse.com/u/Tim_Fletcher)\
**Post date:** [March 29, 2017, 7:41am UTC](https://forums.suse.com/t/auto-mount-nfs-for-use-by-containers-running-on-the-same-node/5980/3 "2017-03-29T07:41:42Z")

</div>

Hi Josh,

I ended up creating a dedicated NFS server (Outside of Rancher), and used the Rancher NFS storage provider to make sure all my container hosts have access to the NFS volumes they need.

This has been working a treat.

Thanks

---

<div class="post-metadata">

**Author:** ![joshwget](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/joshwget/32/704_2.png) [@joshwget](https://forums.suse.com/u/joshwget)\
**Post date:** [March 29, 2017, 5:15pm UTC](https://forums.suse.com/t/auto-mount-nfs-for-use-by-containers-running-on-the-same-node/5980/4 "2017-03-29T17:15:24Z")

</div>

Great! Glad that’s working for you.
