I've just started playing with Docker.... it's an uphill curve
Some good basics reading:
https://www.tecmint.com/install-docker-and-learn-containers-in-centos-rhel-7-6/First thing is trying a search:
docker search homebridge
Here's a guide on setting it up:
https://hub.docker.com/r/oznu/homebridge/This one uses a docker manager rather than manual install but you can use the above manual instructions to use this image:
https://hub.docker.com/r/marcoraddatz/homebridge/Some gotchas....
Not all images will run on the version of Docker on SME 9.x so YMMV.
Make sure you give the image a name with --name so you can refer to it by name
You can start and stop it with
docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
dbdef4149922 some.image "blah blah" 9 hours ago Up 7 seconds homebridge
docker start/stop dbdef4149922
or
docker start/stop homebridge
Networking.... this bit does my head in....
By default the container will get an IP of something like 172.17.42.1
You will have to set up something to send commands to and from the IP on your server. If say it ran a web application on port 80 you would need to either proxy that address with a web template or directly redirect a local port to that ip:port with something like iptables (I think !!)
If you want to access services on localhost you need to add --net="host" at the docker run command.
This means that any services on the docker container are valid 'localhost' services from the server so beware of port conflicts and security issues (have a Google for more)
I believe you could also set it to another 'Local IP' though I have not tried this as yet.
There is more information and links here:
https://wiki.contribs.org/Docker