How to start Domoticz with --no-cache in docker compose? Topic is solved

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
BarryT
Posts: 385
Joined: Tuesday 31 March 2015 22:06
Target OS: Linux
Domoticz version: 2024.3
Location: east netherlands
Contact:

How to start Domoticz with --no-cache in docker compose?

Post by BarryT »

Hi all,

i do not want to use the cache function of domoticz at all, but i can't find a way to disable this.
I'm using domoticz from docker compose (portainer).

thanks!
User avatar
jvdz
Posts: 2441
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: How to start Domoticz with --no-cache in docker compose?

Post by jvdz »

You mean the parameters you can define for env variable EXTRA_CMD_ARG? Just check the docker wiki page.
BarryT
Posts: 385
Joined: Tuesday 31 March 2015 22:06
Target OS: Linux
Domoticz version: 2024.3
Location: east netherlands
Contact:

Re: How to start Domoticz with --no-cache in docker compose?

Post by BarryT »

jvdz wrote: Thursday 20 November 2025 20:23 You mean the parameters you can define for env variable EXTRA_CMD_ARG? Just check the docker wiki page.
Nice answer, i'll Check. Thanks!

Its for Docker, not Docker compose?
User avatar
jvdz
Posts: 2441
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: How to start Domoticz with --no-cache in docker compose?

Post by jvdz »

Docker/docker compose is the same thing, just a different way to configure the stack/Container, like you do with portainer. :D
BarryT
Posts: 385
Joined: Tuesday 31 March 2015 22:06
Target OS: Linux
Domoticz version: 2024.3
Location: east netherlands
Contact:

Re: How to start Domoticz with --no-cache in docker compose?

Post by BarryT »

jvdz wrote: Thursday 20 November 2025 21:12 Docker/docker compose is the same thing, just a different way to configure the stack/Container, like you do with portainer. :D
I was hoping it was that easy, but:

Code: Select all

environment:
      - TZ=Europe/Amsterdam
      - WWW_PORT=80
      - SSL_PORT=0
      - loglevel=error
      - EXTRA_CMD_ARG=--no-cache
 
is not working :shock:
User avatar
jvdz
Posts: 2441
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: How to start Domoticz with --no-cache in docker compose?

Post by jvdz »

BarryT wrote: Friday 21 November 2025 8:12 I was hoping it was that easy, but:
It is, but is the "-no-cache" a valid parameter? This is what the wiki states: https://wiki.domoticz.com/Command_line_parameters.
Isn't the "-no-cache" a parameter for your browser on your the computer?
BarryT
Posts: 385
Joined: Tuesday 31 March 2015 22:06
Target OS: Linux
Domoticz version: 2024.3
Location: east netherlands
Contact:

Re: How to start Domoticz with --no-cache in docker compose?

Post by BarryT »

jvdz wrote: Friday 21 November 2025 8:51
BarryT wrote: Friday 21 November 2025 8:12 I was hoping it was that easy, but:
It is, but is the "-no-cache" a valid parameter? This is what the wiki states: https://wiki.domoticz.com/Command_line_parameters.
Isn't the "-no-cache" a parameter for your browser on your the computer?
No, Domoticz has an no-cache command line parameter, and all these commands are working correctly inside docker compose, but the no-cache is not working.
{BE542200-BCF0-44B4-B4E3-FEC162C9D929}.png
{BE542200-BCF0-44B4-B4E3-FEC162C9D929}.png (95.78 KiB) Viewed 82 times
I tried -nocache, --nocache, -no-cache, but nothing works.
Our Docker is respecting all the parameters, except the nocache.:

Code: Select all

environment:
      - TZ=Europe/Amsterdam #WORKS
      - WWW_PORT=80 #WORKS
      - SSL_PORT=0 #WORKS
      - loglevel=error #WORKS
      - nocache #NOT WORKING
      - no-cache #NOT WORKING
      - --nocache #NOT WORKING
      - --no-cache #NOT WORKING
      - nocache=true #NOT WORKING
and so on....
BarryT
Posts: 385
Joined: Tuesday 31 March 2015 22:06
Target OS: Linux
Domoticz version: 2024.3
Location: east netherlands
Contact:

Re: How to start Domoticz with --no-cache in docker compose?

Post by BarryT »

jvdz wrote: Friday 21 November 2025 8:51
BarryT wrote: Friday 21 November 2025 8:12 I was hoping it was that easy, but:
It is, but is the "-no-cache" a valid parameter? This is what the wiki states: https://wiki.domoticz.com/Command_line_parameters.
Isn't the "-no-cache" a parameter for your browser on your the computer?
Ah, now its working with this environment:

Code: Select all

- EXTRA_CMD_ARG=-nocache
How stupid... :roll: :lol:
User avatar
waltervl
Posts: 6676
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: How to start Domoticz with --no-cache in docker compose?

Post by waltervl »

And the nocache option was added in the code in 2023 but not documented in the wiki, now it is....
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
BarryT
Posts: 385
Joined: Tuesday 31 March 2015 22:06
Target OS: Linux
Domoticz version: 2024.3
Location: east netherlands
Contact:

Re: How to start Domoticz with --no-cache in docker compose?

Post by BarryT »

waltervl wrote: Friday 21 November 2025 18:42 And the nocache option was added in the code in 2023 but not documented in the wiki, now it is....
Great! Thats why i couldnt find.. :D
Thanks both, have a good weekend
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest