RancherOS and NFS mount not working, any solution?

I am running RancherOS 1.5.4 and i want to mount a NFS share so i can use it for my docker containers. I don’t use Rancher server just the OS for running my docker containers.

[rancher@rancher docdata]$ sudo system-docker logs console
mount: mounting on /mnt/docdata failed: Network is unreachable
time="2019-12-02T20:30:36Z" level=error msg="Failed to mount /mnt/docdata: exit status 255"

I do following :


    • /mnt/docdata
    • nfs4
    • “”

How can i mount a NFS share in RancherOS ?



sudo ros service list

you need to enable volume-nfs

sudo ros service enable volume-nfs