Oficial Docker Container Topic is solved
Moderators: leecollings, remb0
-
- Posts: 234
- Joined: Sunday 27 August 2017 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Spain
- Contact:
Oficial Docker Container
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
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
-
- Posts: 223
- Joined: Sunday 30 March 2014 15:24
- Target OS: Linux
- Domoticz version: Beta
- Location: Waterland
- Contact:
Re: Oficial Docker Container
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
-
- Posts: 6
- Joined: Monday 04 January 2021 11:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Oficial Docker Container
Hello,
Where can we see the Dockerfile?
Regards
Where can we see the Dockerfile?
Regards
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Oficial Docker Container
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 6
- Joined: Monday 04 January 2021 11:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Oficial Docker Container
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...
-
- Posts: 6
- Joined: Monday 04 January 2021 11:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Oficial Docker Container
Thanks, but it's docker image, I would like to have a see on Dockerfile source used to create this image
-
- Posts: 6
- Joined: Monday 04 January 2021 11:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Oficial Docker Container
Make a Dockerfile based on the docker image of domoticz, so you can add your own entrypoint scriptDAVIZINHO 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
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Oficial Docker Container
This one ?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Oficial Docker Container
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?
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 234
- Joined: Sunday 27 August 2017 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Spain
- Contact:
Re: Oficial Docker Container
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!
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!
-
- Posts: 223
- Joined: Sunday 30 March 2014 15:24
- Target OS: Linux
- Domoticz version: Beta
- Location: Waterland
- Contact:
Re: Oficial Docker Container
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:
Is there a different way to do this?
If I do it the normal way:
Then I get an error server certificate verification failed. CAfile: none CRLfile.cd /home/${USER}/domoticz/www/styles
git clone https://github.com/domoticz/machinon.git machinon
Is there a different way to do this?
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
-
- 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
Just do:Then I get an error server certificate verification failed. CAfile: none CRLfile.
Is there a different way to do this?
git config --global http.sslverify false
-
- Posts: 223
- Joined: Sunday 30 March 2014 15:24
- Target OS: Linux
- Domoticz version: Beta
- Location: Waterland
- Contact:
Re: Oficial Docker Container
Thanks that worked!
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
-
- 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
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
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
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Oficial Docker Container
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- 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
@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.
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.
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Oficial Docker Container
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- 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
@waltervl: yes.
-
- 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
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.
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.
-
- Posts: 234
- Joined: Sunday 27 August 2017 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Spain
- Contact:
Re: Oficial Docker Container
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.
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.
Who is online
Users browsing this forum: No registered users and 1 guest