JACOBSMILE / tmodloader1.4

An easy to configure Docker Image for tModLoader 1.4 servers.
Other
136 stars 33 forks source link

docker: invalid spec #51

Open Shadark opened 5 months ago

Shadark commented 5 months ago
docker run
  -d
  --name='TModLoader'
  --net='bridge'
  -e TZ="Europe/Paris"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="Redacted"
  -e HOST_CONTAINERNAME="TModLoader"
  -e 'TMOD_SHUTDOWN_MESSAGE'='Server is shutting down NOW!'
  -e 'TMOD_AUTOSAVE_INTERVAL'='10'
  -e 'TMOD_AUTODOWNLOAD'='2909886416'
  -e 'TMOD_ENABLEDMODS'='2909886416'
  -e 'TMOD_MOTD'='Welcome to the TModLoader Server!'
  -e 'TMOD_PASS'='docker'
  -e 'TMOD_MAXPLAYERS'='8'
  -e 'TMOD_WORLDNAME'='World'
  -e 'TMOD_WORLDSIZE'='3'
  -e 'TMOD_WORLDSEED'='WorldSeed'
  -e 'TMOD_USECONFIGFILE'='No'
  -e 'TMOD_DIFFICULTY'='1'
  -e 'TMOD_SECURE'='0'
  -e 'TMOD_LANGUAGE'='en-US'
  -e 'TMOD_NPCSTREAM'='60'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.icon='https://www.tmodloader.net/assets/img/tModLoaderLogo.png'
  -p '7777:7777/tcp'
  -v '/mnt/user/appdata/tmodloader/data':'/data':'rw'
  -v '':'/terraria/terraria-server/serverconfig.txt':'rw' 'jacobsmile/tmodloader1.4:latest'
docker: invalid spec: :/terraria/terraria-server/serverconfig.txt:rw: empty section between colons.
See 'docker run --help'.

The command failed.

Default installation in Unraid, image jacobsmile/tmodloader1.4:latest .

Install is not working.

Shadark commented 5 months ago

Well, to solve the issue locally it was much easier than expected, lol. I just had to remove the "config path" box that was available (as an optional parameter). I guess since it was optional but empty, it was trying to bind an empty volume to a non-existent folder.

My guess would be the Unraid template would need to get updated to remove this parameter in the XML file for all new users.

JACOBSMILE commented 1 month ago

I'll review the unraid spec and check and make sure it still behaves properly.