Next create a directory for your world file, configuration and logs.
mkdir ~/data
Start the container, set the port and the location of the configuration files.
docker run -it --rm \
-p 7777:7777 \
-v ~/data:/root \
jidef/terraria
Note: If you close the the terminal, the server will stop running.
Just move all your stuff to the directory you created before starting the container.
Assuming git and docker are installed..
Clone this repository
git clone https://github.com/jidef/terraria.git
Open a terminal window into the directory downloaded by the git
Build the container
docker build -t <name_here> .
A volume exists to support plugins. Create a folder, not inside your /data folder, for your plugins
mkdir ServerPlugins
Mount the plugins directory with an additional -v switch on your docker run ... command
-v <path_to_your_ServerPlugins_folder>:/tshock/ServerPlugins/
Content type
Image
Digest
Size
76.3 MB
Last updated
over 5 years ago
docker pull jidef/terraria