The script must be run as root. If it’s already executed as root, and it’s still not working: use the full path to the docker binary (/usr/local/bin/docker).
Thank you for your feedback.
The script is running in Root.
The 1st script is the command: /usr/local/bin/docker container start rutorrent-vpn
The return is :
line 1: /usr/local/bin/docker: No such file or directory
On the other hand, I did inject the /usr/local/bin/docker into the PATH.
Here is the return of the $PATH export:
-sh: export: `/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin’: not a valid identifier
I can’t imagine that the path would be different on your system…
Though, this is a symlink created when the docker package is started. If the package is not started, the symlink does not exist. I have no idea why this happens for you and how to fix it.