Oficial Docker Container Topic is solved

Subforum for general discussions. Do not dump your questions/problems here, but try to find the subforum where it belongs!

Moderators: leecollings, remb0

Post Reply
DAVIZINHO
Posts: 234
Joined: Sunday 27 August 2017 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Spain
Contact:

Oficial Docker Container

Post by DAVIZINHO »

Hello,
I see that we have a oficial docker container! GREAT!!

https://hub.docker.com/r/domoticz/domoticz

Im a user of docker containers since 2 years ago (linuxserver and other).

I create this topic to talk about THE OFICIAL CONTAINER, only, not other. Making a place to coment an discuss about the problems, workarrounds, etc...

Now im trying to migrate my setup from linuxserver to this oficial, because the oficial have the betas and linuxserver not.

I have this issues or "problems":
- The time zone will be configured as volume. In synology i cant setup the volume "/etc/localtime" and the solution will be configure de timezone as a variable.
- I need some packages that i need to install in every startup of domoticz. Its posible to add a script that launch on init of docker
rron
Posts: 223
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: Oficial Docker Container

Post by rron »

It looks if you can't edit files inside init.d with nano because the command is unknown. But as if I said before docker is new to me. A lot to explore.
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
tygerlord
Posts: 6
Joined: Monday 04 January 2021 11:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Oficial Docker Container

Post by tygerlord »

Hello,
Where can we see the Dockerfile?
Regards
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Oficial Docker Container

Post by waaren »

tygerlord wrote: Tuesday 09 February 2021 10:16 Where can we see the Dockerfile?
See this wiki page where you can read that the official docker can be found here
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
tygerlord
Posts: 6
Joined: Monday 04 January 2021 11:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Oficial Docker Container

Post by tygerlord »

rron wrote: Saturday 06 February 2021 16:02 It looks if you can't edit files inside init.d with nano because the command is unknown. But as if I said before docker is new to me. A lot to explore.
You run bash inside docker domoticz? if so You can install nano, the way depends of distribution used (apt install nano, ...) but be careful all modification are not permanent after restarting docker image...
tygerlord
Posts: 6
Joined: Monday 04 January 2021 11:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Oficial Docker Container

Post by tygerlord »

waaren wrote: Tuesday 09 February 2021 10:21
tygerlord wrote: Tuesday 09 February 2021 10:16 Where can we see the Dockerfile?
See this wiki page where you can read that the official docker can be found here
Thanks, but it's docker image, I would like to have a see on Dockerfile source used to create this image
tygerlord
Posts: 6
Joined: Monday 04 January 2021 11:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Oficial Docker Container

Post by tygerlord »

DAVIZINHO wrote: Saturday 06 February 2021 13:50 Hello,
I see that we have a oficial docker container! GREAT!!

https://hub.docker.com/r/domoticz/domoticz

Im a user of docker containers since 2 years ago (linuxserver and other).

I create this topic to talk about THE OFICIAL CONTAINER, only, not other. Making a place to coment an discuss about the problems, workarrounds, etc...

Now im trying to migrate my setup from linuxserver to this oficial, because the oficial have the betas and linuxserver not.

I have this issues or "problems":
- The time zone will be configured as volume. In synology i cant setup the volume "/etc/localtime" and the solution will be configure de timezone as a variable.
- I need some packages that i need to install in every startup of domoticz. Its posible to add a script that launch on init of docker
Make a Dockerfile based on the docker image of domoticz, so you can add your own entrypoint script
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Oficial Docker Container

Post by waaren »

tygerlord wrote: Tuesday 09 February 2021 11:17 Thanks, but it's docker image, I would like to have a see on Dockerfile source used to create this image
This one ?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Oficial Docker Container

Post by waltervl »

From the documentation point of view: What version do I get when I pull it, stable or beta?
When looking at https://hub.docker.com/r/domoticz/domoticz is see "Docker containers with official Domoticz (beta) builds."
I suppose I will get a beta build. Or there is or will be the possibility to choose a beta or stable build?
Can I pull the stable version of Domoticz?
How frequent is the docker beta image updated? Together with the other builds of the beta's on the domoticz.com/download section?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
DAVIZINHO
Posts: 234
Joined: Sunday 27 August 2017 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Spain
Contact:

Re: Oficial Docker Container

Post by DAVIZINHO »

the docker is very new. and the creator is working on it.
Now the problem with the timezone is solved. he solved it last weekend :-)

now i suggest to add a folder that launch a .sh in the first boot of the container (the people of linuxserver do it in all they dockers and works great). This posibility allow us to ad a simple sh with all the librarys that you need (miio, nano, curl, gnotify, etc...)
This will be great! i hope they implement this.

now the docker have the beta version of domoticz, and last update was 3 days ago. i dont know if the upgrade as frecuently as the oficial betas.

In my configuration it works great!
rron
Posts: 223
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: Oficial Docker Container

Post by rron »

I don't know if I can ask a question here about the new docker or must I create a new topic? The question is how can I pull the machinon style into domoticz?
If I do it the normal way:
cd /home/${USER}/domoticz/www/styles
git clone https://github.com/domoticz/machinon.git machinon
Then I get an error server certificate verification failed. CAfile: none CRLfile.
Is there a different way to do this?
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
Alcloud
Posts: 32
Joined: Sunday 18 June 2017 22:00
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Berlin, Germany
Contact:

Re: Oficial Docker Container

Post by Alcloud »

Then I get an error server certificate verification failed. CAfile: none CRLfile.
Is there a different way to do this?
Just do:
git config --global http.sslverify false
rron
Posts: 223
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: Oficial Docker Container

Post by rron »

Thanks that worked!
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
Harrie
Posts: 5
Joined: Saturday 31 January 2015 15:39
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Harderwijk, Nederland
Contact:

Re: Oficial Docker Container

Post by Harrie »

Sorry if this is the wrong place to ask this question.
But i try to install this official docker image in a container on my synology nas.

I can get Domoticz up and running and restore the database from my current Pi implementation. All devices are present.

The only thing i can not get to work (so far) is to run scripts on virtual switches.

I suspect it is because i am new to docker and i do not really understand how to 'map' under advanced settings in Synology.
I can not find any documentation about that.

So what do i enter in 'Bestand/Map' and 'Pad koppelen' in DSM? Do i have to enter something in 'Mileu' ??

My 'best' logging so far is: Error: SQLHelper: Error script not found '/opt/domoticz/userdata/scripts/hs/hsDomCopy.py'

The /opt/domoticz/userdata is unknown to me!.

Any help welcome.
Thanks in advance
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Oficial Docker Container

Post by waltervl »

Harrie wrote: Sunday 14 February 2021 14:17
The /opt/domoticz/userdata is unknown to me!.
It is in the manual: https://hub.docker.com/r/domoticz/domoticz
did you use docker-compose?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Harrie
Posts: 5
Joined: Saturday 31 January 2015 15:39
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Harderwijk, Nederland
Contact:

Re: Oficial Docker Container

Post by Harrie »

@waltervl
No i did not use composer. I used the docker ui on the synology box to create a container. So i have to use the fields presented.
I dir see it in the documentation you mentioned. But i can not deal with it.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Oficial Docker Container

Post by waltervl »

Let's hope someone comes by with Synology Docker experience...
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Harrie
Posts: 5
Joined: Saturday 31 January 2015 15:39
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Harderwijk, Nederland
Contact:

Re: Oficial Docker Container

Post by Harrie »

@waltervl: yes.
bce626
Posts: 17
Joined: Saturday 03 November 2018 10:12
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Netherlands
Contact:

Re: Oficial Docker Container

Post by bce626 »

I am using docker compose on a raspberry pi 4, and installed domoticz.
now i have a few questions.
i have installed python and pip for deconz / conbee.
this works for now.
will this stay as it is, or do I have to reinstall pythone and pip per update domoticz?

under settings, devices I can activate switches.
press the green arrow and then a pop up add device will appear, then press the add device button, it will turn gray but nothing happens.
what did I do wrong ?

ps my text is created with the help of google.
DAVIZINHO
Posts: 234
Joined: Sunday 27 August 2017 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Spain
Contact:

Re: Oficial Docker Container

Post by DAVIZINHO »

hello, I use synology interface to create the docker and its easy. You must map your local volume to the docker folders
Create a folder in your synology nas like /dockers/domoticz/config
In the docker app, in your container, in the volume secciont link this folder to /opt/domoticz/userdata
reboot the docker

after this all the files you put in your /dockers/domoticz/config, apears in the container in folder /opt/domoticz/userdata
Its important that you see the terminal seccion in your docker, you can create a session and see the docker inside. you can run scripts, install librarys, etc...

domoticz maybe is not the best docker to iniciate in this world. i recomend to you to try other first and learn the basics. :-)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest