Sign inSign up

trfc/vanilla-terraria

By trfc

•Updated almost 5 years ago

Image
0

363

trfc/vanilla-terraria repository overview

⁠Containerized Vanilla Terraria Server

A vanilla Terraria server image! For TShock, check out the following: | GitHub⁠ | Docker⁠ |

Discord MediumLink MIT License

Docker Cloud Build Status Docker Cloud Automated build Docker Image Size (tag) Docker Pulls

CodeFactor

A containerized version of Terraria Server running on Linux, courtesy of Mono⁠!

⁠Quickstart

First and foremost, you're going to need Docker. Please check out Docker's documentation⁠ for how to install it on the various supported platforms. While the install may be different per platform, the rest of the steps will remain the same (containers sure are nice, aren't they?).

After installing docker, just run the following command and wait a few minutes:

docker run -d -p 7777:7777 --memory=500m --mount source=terraria,target=/world --name="terraria" trfc/vanilla-terraria:latest -autocreate 1 -world /world/Terrarium.wld
⁠Explanation of the command above
Parameter/OptionDescription
-drun the container in detached mode so you can go about your day.
-p 7777:7777map port 7777 to the container's port 7777 so that you can connect to the server (since the command does not change the server from its default port).
--memory=500mset the max amount of memory to use so that your system doesn't crash because of out of memory exceptions.
--mount source=terraria,target=/worldcreate (or attach to if existing) a volume so that your world persists even when the container shuts down.
--name="terraria"name the running container "terraria"
trfc/vanilla-terraria:latestuse this image 😊
-autocreate 1 -world /world/Terrarium.wldcreate a small world named Terrarium OR use an existing world named Terrarium (default Terraria server command)

⁠Quickstart with more control

After installing docker, start the container (and your server) in interactive mode:

docker run -it -p 7777:7777 --memory=500m --mount source=terraria,target=/world --name="terraria" trfc/vanilla-terraria:latest

Next, go through the prompts as it asks (make note of the name of your world).

Finally, after the server starts, exit by pressing Ctrl+p followed immediately by Ctrl+q. This will cause the container to switch to daemon mode, which will allow it to keep running in the background.

Tag summary

Content type

Image

Digest

Size

126.5 MB

Last updated

almost 5 years ago

docker pull trfc/vanilla-terraria