A Dreamer's Lair

Install domoticz on the Raspberry PI in a docker container part 2: using linux server image

In a previous post I showed how I installed domoticz in a docker container using the documentation on the WIKI.

Since I now need to start using domoticz for ‘real’ (since the razberry daughterboard on my ‘production’ PI seems to have died on me) I wanted to update the container with the latest version. Although I no longer have to do the two part install (see my previous post) I searched for an alternative which would be simpler to use and also up-to-date. That is when I came across the linux server.io site which also has a domoticz image available. I tried to install that and it all seems a lot simpler than the one from Joshuacox. Well at least for a domoticz/docker beginner like me!

Since I am using docker on a Raspberry PI3 I needed the ARM version of the domoticz image which can be found here.

As I mentioned in my previous post I already have a mount to my NAS in which I want to store my domoticz data. The mount on the PI is


After removing the old domoticz container and images and cleaning up the mapped config folder on the NAS, I then installed the new domoticz instance.

sudo docker run --name=domoticz \
                --restart unless-stopped \
                -d \
                -t \
                -p 1443:1443 \
                -p 6144:6144 \
                -p 8080:8080 \
                -v /home/pi/dockerdata/domoticz:/config \
                -e TZ=Europe/Amsterdam \
                --device=/dev/ttyUSB0 \

I no longer use the –privileged flag now because it’s more secure. Mapping the USB device seems to work just as fine.

After starting the container I checked the running domoticz instance on


Unfortunately domoticz seemed not to be running. After inspecting the container logs, it turned out that an SSL key was generated for domoticz so it could be accessed using SSL. However, generating such a key on a Raspberry PI 3 takes quite a long time (in my case it took about 30-45 minutes!).

After I drank a nice cup of tea, and such…, domoticz was finally up.

So I now can start to reset all my ZWave nodes (since they can’t be removed from a dead ZWave controller) and include the in my new ZWave ‘production’ environment.

    2 comments already | Leave your own comment

  1. 11/27/2018 | 10:36 Permalink

    I’m trying to do something similar on a NAS running on x86 platform instead of raspberry.
    Mosquitto and Node-red docker are running fine.
    Domoticz docker seems to run fine, but each time that I try to update a device (temperature or switch), using json http, domoticz restarts.
    I tried another linux pc with docker and I got the same behavior, regardless of domoticz version.
    Is the raspberry version of docker stable ?

    Respond to this comment

    • 11/28/2018 | 14:02 Permalink

      I am using domoticz for several months now through the json web interface. The docker container runs quite stable and I haven’t had issues with it. Perhaps it depends on the version of domoticz or perhaps which json calls you make? I only use a stable version, right now for me it’s on 4.9741. Also I use a limited amount of json methods, type=devices, type=plans, type=command&param=switchlight and type=setused.

      Respond to this comment

  2. Or

    Your email address will not be published. Required fields are marked *


    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>