-
Notifications
You must be signed in to change notification settings - Fork 55
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
Updating docker image with out losing data #15
Comments
I don't know much about your exact setup, but this line is wrong without the
it should be
I'd also recommend using a tagged version of the docker container |
Thanks for the response! Unfortunately, doing so gets an error response from daemon, bind mount failed. Saying the path doesn't exist. Without the " :/ ", the line does execute unless I'm wrong to assume its the config.json file? Upon creating the container, I've created a volume path to "$HOME/path/to/where/config/is/", where the log file and server config files are. Tried running in root as well to no avail. A question from that, what does ":/" do? |
The https://docs.docker.com/engine/reference/run/#volume-shared-filesystems |
The standard path of the world folder inside the docker container is As a first step, I recommend the following: If you successfully mounted the config directory ( You can now use the environment varible To update to a new version, you should backup the content of the mounted |
I just wonder, how did you manage to keep the server running even tho there is no stdout, it was failing for me all the time? |
Firstly, thanks for the response! I've been away from my server so I couldn't attempt anything for a while.
So, yep, Additionally, using
I think I'm missing something. Not sure how to enter those "." folders but is it here somewhere?
Continuing from the previous paragraph, in the Environment Variables container, the path is
This actually just cleared everything and doing so, made it like I've just installed another container. Importing the exported container and running it shows no signs of the previous world sadly. Which may mean the world file is living somewhere else? Or exporting the container doesn't really back up anything and only exports the image... I've exported everything so I may be okay if we find a solution but if it's the worst-case scenario - all good. I've played Terraria 4 times over in the past and I just can't stop 😅. I've also used a known seed so should be okay. Anywho, I'd still really like to figure this out before another update so I've made another world as a stand-in. |
Not sure what you mean considering after making the container, the typical TerrariaServer prompts appeared in the Terminal section once running (takes like 20 seconds or I just type jibberish and it pops up since I entered an invalid input). The Log tab also shows all the outputs too. All I did was:
|
Very new to this but I've hit a wall and need help.
Using docker via Synology (DS918+), downloaded the image while on 1.4.0.3. Hosted Terraria Vanilla for quite a while and then 1.4.0.4 releases... I have the latest image but I'm not too sure how to proceed in terms of updating the 1.4.0.3 container and/or pulling the world file out and pushing it back into a new container. Note: I did not use the generate world line below:
and just installed it via Synology Docker. The only thing I altered was the port options (didn't find luck with ports but using the "Use the same network as Docker Host" option worked perfectly) and changed the volume path for the config files.
Have installed Putty. Tried the line:
as mentioned in the How to: section using the same 1.4.0.3 config file and with the same world name. Outputs a string of numbers and letters then nothing. Docker briefly shows the new container but that dies after a few seconds and does not exist. During this time, the container is off.
Also tried exporting the container which holds my world but cannot locate the personal world file within.
ELIA5:
1.0. How to update the outdated container currently on 1.4.0.3 without deleting the world. Have not attempted clearing the container as it says it'll delete everything.
1.1. Why is the code above not working? It runs but then the new container dies after. Typo? And
2.0. How to locate the world.wld file within the container? For backup purposes.
Any help/guidance/tips will be appreciated!
The text was updated successfully, but these errors were encountered: