#!/bin/bash
sudo docker pull evcc/evcc:latest
sudo docker stop evcc
sudo docker rm evcc
cd /home/pi/smarthome
sudo docker-compose up -d
Nodered Debug : /data/evcc.sh: line 3: sudo: command not found /data/evcc.sh: line 4: sudo: command not found /data/evcc.sh: line 5: sudo: command not found /data/evcc.sh: line 6: cd: /home/pi/smarthome: No such file or directory /data/evcc.sh: line 7: sudo: command not found
A bit more information might be necessary to get a helpful answer.
Are you trying to execute docker commands from inside a docker container (I assumed this because of /data path being used)?
Ok, aber innerhalb vom Docker Container wird es nicht ohne weiteres möglich sein Docker zu steuern. Was genau ist das Ziel der Übung?
Wenn es nur darum geht den Container zu aktualisieren, gibt es bessere Wege, zum Beispiel watchtower.
In nodered there is the ecec node, you can feed it with commands, for example. sudo reboot ... this does not work . debug;object
Code: 127
Message: "Command failed: sudo reboot↵/bin/bash: line 1: sudo: command not found↵"