itzg / docker-mc-backup

Provides a side-car container to backup itzg/minecraft-server world data
https://hub.docker.com/r/itzg/mc-backup
MIT License
316 stars 52 forks source link

Unable to connect to RCON on unRAID server #153

Closed HAMCORE closed 10 months ago

HAMCORE commented 10 months ago

I am having a lot of issues getting this container to communicate with my main Minecraft itzg container.

I have set the server port, rcon port, and rcon password (all default) variables and all of the drive mounts.

localhost and mc (name of my Minecraft container) do not work for RCON_HOST.

Network is set to bridge in unRAID

HAMCORE commented 10 months ago

Fixed this routing the backup container to the Minecraft container.

Under the edit tab for the backup container, click advanced, set network to "none" and under extra parameters you add --net=container:<name of Minecraft container>.

I then set the RCON_HOST to "localhost"

itzg commented 10 months ago

Since I'm not familiar with Unraid, how are the containers configured there? I party ask because manually getting the name resolution on docker networks to line up is surprisingly hard. What always works for me is letting compose coordinate that as int he example

https://github.com/itzg/docker-mc-backup/blob/master/examples/docker-compose.yml

But I'm not sure if that's an option for you.