-
Notifications
You must be signed in to change notification settings - Fork 3
6. Docker container
PassiveLemon edited this page Apr 4, 2023
·
1 revision
docker run -d --name (container name) -p 7777:7777 -v (ConfDir):/tmodloader/config/ -e VERSION=(tml version) passivelemon/tmodloader1.4-docker:latest
Operator | Need | Details |
---|---|---|
-d |
Yes | Will run the container in the background. |
--name (container name) |
No | Sets the name of the container to the following string. You can change this to whatever you want. |
-p 7777:7777 |
Yes | The default port used by the server. This translates from your host 7777 into the container 7777. If you use a different port for your server in your serverconfig, change this. |
-v (ConfDir):/tmodloader/config |
Yes | Sets the folder that holds the configs like your modpack, worlds, and serverconfig.txt. This should be the place you just chose. |
passivelemon/tmodloader1.4-docker:latest |
Yes | The repository on Docker hub. By default, it is the latest version that I have published. |
docker run -d --name tmodloader1.4 -p 7777:7777/tcp -v /opt/tModLoaderServer/:/tmodloader/config/ -e MODPACK=ultimatepack -e WORLD=superworld -e VERSION=2022.09.47.44 passivelemon/tmodloader1.4-docker:latest