On the domoticz WIKI is a page on how to install domoticz in a docker container. You can find it here.
There were however some items on that page, ‘cat cid’ and ‘pwd’ I did not quite understand being a newcomer in Docker. For those that have come accross the same issue here is what I did to get it running (mainly copying stuff from the WIKI page).
I already have a mount to my NAS in which I want to store my domoticz data. The mount on the PI is
I created a folder called domoticz in dockerdata to store the data from domoticz
Now we have to start a first instance of domoticz from which we can copy the config files. I haven’t got a clue why this process needs two steps and two containers, but I’ll stick to the manual because I don’t know what else to do 🙂
So to run the first container
sudo docker run --name=domoticz \ --privileged \ --cidfile="cid" \ -d \ -t \ -p 8080:8080 \ joshuacox/mkdomoticz:arm
We can now copy the config files from the running container into our created domoticz folder
sudo docker cp domoticz:/config /home/pi/dockerdata/domoticz
Now this container is no longer used and can be removed
sudo docker stop domoticz sudo docker rm domoticz
And we can finally create our ‘real’ domoticz container using the created config folder. Please note that I included an extra parameter to set the timezone correctly in the domoticz container.
sudo docker run --name=domoticz \ --privileged \ -d \ -t \ -p 8080:8080 \ -v /home/pi/dockerdata/domoticz:/config \ -e TZ=Europe/Amsterdam \ joshuacox/mkdomoticz:arm
And we are done. You can check the running domoticz instance on