Do Docker "node" images have ssh-keygen?
I tested with node:20 and node:20-alpine and can confirm that:
node:20(i.e. debian bookworm based) has a workingssh-keygennode:20-alpinedoes not havessh-keygen
On Alpine, you can install ssh-keygen using apk.
Typically, this means you have to build your own docker image based no node:20-alpine. In your Dockerfile, add
Dockerfile
RUN apk update && \
apk add --no-cache \
openssh-keygenIf this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow