Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Volume not mapping #69

Open
laneyweb opened this issue Apr 13, 2021 · 6 comments
Open

Volume not mapping #69

laneyweb opened this issue Apr 13, 2021 · 6 comments

Comments

@laneyweb
Copy link

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.

@ryansheehan
Copy link
Owner

ryansheehan commented Apr 13, 2021 via email

@laneyweb
Copy link
Author

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?

@laneyweb
Copy link
Author

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 :)

@laneyweb
Copy link
Author

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?

@ryansheehan
Copy link
Owner

ryansheehan commented Apr 13, 2021 via email

@laneyweb
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants