You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble creating containers against a Synology DS920+ NAS running Container Manager. In short, when I apply my Terraform it returns an error indicating that docker could not be found. The problem seems to be related to the ssh call to the Synology NAS.
When I ssh to the NAS separately, the docker command is accessible. When I do "ssh my_nas -- docker --version" I get the docker not found error. After snooping around it seems that ssh used in this manner doesn't have the user's PATH and cannot find the docker app. To test I executed both "ssh my_nas -- /usr/local/bin/docker --version" and "ssh my_nas -- PATH=/usr/local/bin && docker --version", and both worked as expected.
I'm not great with ssh management and I'm hesitant to break my NAS ssh server by fiddling with the sshd config.
So, is there something I can do to get this to work without noodling around the sshd config?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Greetings.
I'm having trouble creating containers against a Synology DS920+ NAS running Container Manager. In short, when I apply my Terraform it returns an error indicating that docker could not be found. The problem seems to be related to the ssh call to the Synology NAS.
When I ssh to the NAS separately, the docker command is accessible. When I do "ssh my_nas -- docker --version" I get the docker not found error. After snooping around it seems that ssh used in this manner doesn't have the user's PATH and cannot find the docker app. To test I executed both "ssh my_nas -- /usr/local/bin/docker --version" and "ssh my_nas -- PATH=/usr/local/bin && docker --version", and both worked as expected.
I'm not great with ssh management and I'm hesitant to break my NAS ssh server by fiddling with the sshd config.
So, is there something I can do to get this to work without noodling around the sshd config?
Beta Was this translation helpful? Give feedback.
All reactions