Thanks for this post! I'm having trouble getting NFS volumes to work in Nomad.
I have a share from my NFS server attached to all nodes at /mnt/nomad-shared which is working fine, however, when following your resolution, I get the following error:
"volumes are not enabled; cannot mount host paths: "/mnt/nomad-shared/data:/etc/traefik""
A bit late, but if anyone finds this post and comment and facing similar issue, I suggest to look at nomadproject.io/docs/drivers/docke.... By default, Nomad Docker task driver (I assume you use Docker) has host volumes binding disabled and you need to explicitly enable it in the config.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey,
Thanks for this post! I'm having trouble getting NFS volumes to work in Nomad.
I have a share from my NFS server attached to all nodes at /mnt/nomad-shared which is working fine, however, when following your resolution, I get the following error:
"volumes are not enabled; cannot mount host paths: "/mnt/nomad-shared/data:/etc/traefik""
In my nomad config I have the following:
and my traefik job looks like:
I've also tried "/mnt/nomad-shared/data/traefik" and "/mnt/nomad-shared/traefik" in the config, both of which result in the same error.
I'm very new to Nomad, so sorry if I'm missing something very basic.
A bit late, but if anyone finds this post and comment and facing similar issue, I suggest to look at nomadproject.io/docs/drivers/docke.... By default, Nomad Docker task driver (I assume you use Docker) has host volumes binding disabled and you need to explicitly enable it in the config.