Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting ssh-keygen in Alpine docker

for node-red new functionality Projects - where one can sync with a git repo, I need ssh-keygen in my Alpine docker Image. According to Alpine Linux packages for v3.6, it is in the openssh-keygen package.
Thus, I added the RUN commands as follows in the Dockerfile, with no luck.

......
RUN   apk update && \
      apk add --no-cache \
      openssh-keygen
......

I then test to see if it gets into the Image, by creating a container from the Image, doing a docker exec -it containername sh and then typing ssh-keygen - but do not find it.
Also not working if I replace openssh-keygen with openssh under the RUN command in the Dockerfile.

Can someone please point me in the right direction?

like image 304
Jéan Avatar asked Dec 14 '22 17:12

Jéan


1 Answers

Thanks to @PrasadK - which nudged me along, the answer to Node- Red new Projects feature since version 0.18.3 - in order to have a remote repo - using this function in Node-Red Projects, the underlying docker image requires ssh-keygen. Do this in the Dockerfile with:

......
RUN   apk update && \
      apk add --no-cache \
      openssh-keygen
......
like image 52
Jéan Avatar answered Jan 05 '23 17:01

Jéan