Shell command execute docker exec

Hi Guys,

I’m tyring to execute a docker exec command via a shell command.

shell_command:
  XY: bash /config/docker.sh "{{ value }}"

Within the sh file I want to execute a docker exec command to control a docker container which is running on Home Assistant.

The sh-File is successfully called but the docker command is not executed.

If I run the command directly via shell (protection off) it works.

So is it possible to deacitvate the protection mode to execute a docker command via an button or switch from a normal HA frontend?

What OS/HA install are you using?

I’m using hassio in the last stable version 4.12.

I am sure that the path /config/docker.sh is wrong - unless this is a script you wrote?

that is my script I wrote. File and path is correct.