ryansheehan/terraria

Volume not mapping

laneyweb opened this issue · 6 comments

Hi, thanks for taking the time to create this and to support mobile server. I am trying to setup a dedicated container to play with my family. I have lots of other docker containers running well but I'm having issues with this one.

I can run up the container just fine and the game plays well using the following command:

sudo docker run -it -p 7777:7777 --rm -v /volume2/docker/terraria:/root/.local/share/Terraria/Worlds ryshe/terraria:mobile-latest -world /root/.local/share/Terraria/Worlds/first.wld -autocreate 1

We can connect from our iPads. However, the issue is that I am not able to get the world to save to the local mount point. Am I correct in thinking that the above command should create the config and world file locally in my /volume2/docker/terraria folder? It does not, I can play OK but no files are created in that folder.

I have checked the local path (same as I use for other container mount points) and it is correct and the ownership looks OK.

Can you give me any pointers or suggestions please?

Thank you again.

Hi thanks so much for the quick reply!

That's a great idea. am I able to change the entrypoint by changing the command I used? Or do I need to change that elsewhere?

Apologies, I can use Portainer to run a /bi/sh entrypopint console....

I'm off to have a search around. I need to google how to search all folders now :)

OK. The mobile folder seems to be at:

/root/.local/share/Terraria/Mobile/Worlds - I have changed my docker command to:

sudo docker run -it -p 7777:7777 --rm -v /volume2/docker/terraria:/root/.local/share/Terraria/Mobile/Worlds ryshe/terraria:mobile-latest -world /root/.local/share/Terraria/Mobile/Worlds/first.wld -autocreate 1

Now my local mount shows the world and is now persistent - yay.

However, the world name created there is World.wld, not the name I specified in the docker command. I can live with that of course but it may cause an issue if we ever need to transfer an existing world to that location?

OK. The mobile folder seems to be at:

No worries. Glad to help, thank you for helping me play with my daughters on their iPads.