Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Don't know about windows, but you can use NFS on OS X and Linux.

If you mount your working directory exactly like on your host machine, you can even use relative paths in your Dockerfile.

E.g mount /Users/tracker1 from your host on /Users/tracker1 on the VM.

Since your Dockerfile working dir matches on both systems, you can use them as if you were working directly on the machine, like:

ADD ./entrypoint.sh /entrypoint.sh COPY ./app/code /code

etc.




I didn't know you could NFS over SSH... interesting... Just need a solution for my windows desktop.

https://gist.github.com/proudlygeek/5721498




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: