lloesche / valheim-server-docker

Valheim dedicated gameserver with automatic update, World backup, BepInEx and ValheimPlus mod support
https://hub.docker.com/r/lloesche/valheim-server
Apache License 2.0
1.91k stars 269 forks source link

When running in a docker on Unraid, watch out for cross disk files as they don't show inside container #622

Open gdragon-git opened 1 year ago

gdragon-git commented 1 year ago

running on Slackware 15.0 x86_64 ... 5.19.17-unraid

via Portainer

Started getting instances where files I put directly on a volume drive accessed via SMB wasn't showing up in the Valheim server docker processing. Turns out that Unraid splitting the docker volume directories and files across disks in its array didn't come over cleanly into the Docker. I suppose there's some incompatibility with what the docker expects to be run on (Debian 11?) versus what Unraid sits on (Slackware 15.0)

thefreymaster commented 1 year ago

I have this docker running successfully in Unraid, but I cannot even find where it is saving files, i.e. game saves. I want to restore a previous backup, any idea on where that would be for Unraid?

gdragon-git commented 1 year ago

https://youtu.be/ISJczs06pD8?t=321

Be careful though. When you move it out of the docker.img into a static volume, if that volume location is split across drives, the container OS is unable to properly access the files as described in my OP.

thefreymaster commented 1 year ago

So is this valheim-server-docker storing the save data in the docker image itself? i.e. not in /appdata?

thefreymaster commented 1 year ago

I finally found the save files. Is it worth just leaving them in the docker file? I don't want to encounter the problem @Magnacoder was experiencing.

For anyone confused like I was, in Unraid, open the terminal, run docker exec -it NAME_YOU_GAVE_OF_DOCKER bash That will open the terminal of that specific docker. Saves are in /config/world_saves

thefreymaster commented 1 year ago

@Magnacoder do you know how I would set the saves to be in /appdata?