@mattlward wrote:
I just moved to docker and Ubuntu from my Pi3. I have a UPS that I want to run a test on from time to time, it is directly connected to the hassio host via usb and running Nut. All of that is working well.
The issue is that I need to issue the following commands to start and stop the test:
drups_test_deep: command_on: docker exec addon_40817795_nut upscmd -u nut -p pm9600,sa drups test.battery.start.deep command_off: docker exec addon_40817795_nut upscmd -u nut -p pm9600,sa drups test.battery.stop friendly_name: drups load test
I am running the addon SSH & Web Terminal. From the provided integrated terminal the above commands work with protection mode off. But, if I drop into the homeassistant docker container with the Portainer shell and run the commands I get:
bash: docker: command not found
This is the error that appears in the logs when I try to issue the commands as a command line switch:
Command failed: docker exec addon_40817795_nut upscmd -u nut -p pm9600,sa drups test.battery.start.deep
So, it appears to me that the homeassistant container cannot make a direct connection to the underlying docker system to make the call.
How do I get around this? Am I going to have to SSH to something and then issue the commands?
Posts: 32
Participants: 3