RyanEwen / lan-cache-docker

A super simple docker container to run a LAN cache for steam, origin, etc
78 stars 14 forks source link

how to mount a NFS file for cache datas ? #18

Open tamatoa opened 6 years ago

tamatoa commented 6 years ago

Hello, thanks for your great how-to :) As I run my ubuntu server on Hyper-V and I have a NAS, and wish I could use it for cache the data. Can you tell me how to do this ? I have NFS share. Thank you

RyanEwen commented 6 years ago

I haven't tried a setup like this but I imagine you could move the lan-cache-docker/data/cache directory somewhere temporarily, then mount your NFS drive to lan-cache-docker/data/cache, and then move the contents of cache back (so that they end up on the share. You'd need to do that while the containers were down, and then bring them back up afterwards.

tamatoa commented 6 years ago

my ubuntu server is on hyper-V and I'm using it for cache all my games. So I type "sudo mount 192.168.2.111:/volume1/gamecache/cache lan-cache-docker/data/cache" and I start all docker containers, but nginx keeps restarting. Do you have any idea why it restarts ? thank you

tamatoa commented 6 years ago

by default, caching steamgames are working flawlessly 👍 but when I try to mount my nfs folder to the docker cache, I dont have the same result. I'm trying to dig what I did wrong