Hi!
In the following, let
does not work, because the output of
reveals the path to be
There are various ways around it. But I did not find one without tampering the internals of the
Is there a known "tamper-free" way to enable remote Docker CLI support to a host running DSM? And if not, what may be the least intrusive way of accomplish the aim? Or is, e.g., creating a link from
Best wishes
Sebastian
In the following, let
DSM-HOST
be the address of a Synology DSM 7.1 host running the official Docker package. As long as pubkey authentication is set up, the docker CLI usually supports connecting to Docker daemons on other hosts via SSH, e.g., by docker --host ssh://root@HOST …
. However,
Code:
docker --host ssh://root@DSM-HOST …
Code:
echo 'echo $PATH' | ssh root@DSM-HOST sh
/usr/bin:/bin:/usr/sbin:/sbin
, and that does not provide for finding /usr/local/bin/docker
.There are various ways around it. But I did not find one without tampering the internals of the
DSM-HOST
. E.g., by creating a symlink from /usr/bin/docker
to /usr/local/bin/docker
on the DSM-HOST
. Or by changing the /etc/ssh/sshd_config
on the DSM-HOST
.Is there a known "tamper-free" way to enable remote Docker CLI support to a host running DSM? And if not, what may be the least intrusive way of accomplish the aim? Or is, e.g., creating a link from
/usr/local/bin/docker
to /usr/bin/docker
no tampering at all?Best wishes
Sebastian