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
To use the registry with a git repository, ssh and docker, the "ssh" page ( http://myurl:8761/#/ssh) explain how to generate a key pair with "ssh-keygen" :
Log in inside the container: docker exec -it <containerIdOrName> sh
Generate an SSH key: ssh-keygen
However, this command doesn't exist on the container. In addition, the 'test' step to accept the rsa is mandatory.
Motivation for or Use Case
The documentation is detailed, so it shoud detail the steps to generate a keypair.
Reproduce the error
Start and enter a registry container docker run --rm -i -t jhipster/jhipster-registry:v4.1.1 sh
Try the given command : ssh-keygen
Reponse : sh: ssh-keygen: not found
Related issues
Suggest a Fix
I suggest updating the documentation.
Thoses are the steps I followed - I intend to use a volume to store the keys.
create a Dockerfile : ubuntu with openssh installed
FROM ubuntu:latest
RUN apt-get update
RUN apt-get -y install openssh-client
RUN mkdir /root/.ssh
build the image docker build -t keygen-generator .
Start a container based on this image, and use the volume docker run --rm -i -t -v jhipster-registry-data:/root/.ssh keygen-generator bash
Overview of the issue
To use the registry with a git repository, ssh and docker, the "ssh" page ( http://myurl:8761/#/ssh) explain how to generate a key pair with "ssh-keygen" :
However, this command doesn't exist on the container. In addition, the 'test' step to accept the rsa is mandatory.
Motivation for or Use Case
The documentation is detailed, so it shoud detail the steps to generate a keypair.
Reproduce the error
docker run --rm -i -t jhipster/jhipster-registry:v4.1.1 sh
ssh-keygen
sh: ssh-keygen: not found
Related issues
Suggest a Fix
I suggest updating the documentation.
Thoses are the steps I followed - I intend to use a volume to store the keys.
build the image
docker build -t keygen-generator .
Start a container based on this image, and use the volume
docker run --rm -i -t -v jhipster-registry-data:/root/.ssh keygen-generator bash
Generate the keys
ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa
Accept the key for the host of you git repo (here, github)
ssh -T [email protected]
then type "yes"The volume
jhipster-registry-data
now contains my keys, the know_host, and can be used with my jhispter-registry container.JHipster Registry Version(s)
I'm using the image jhipster-registry:v4.1.1
Browsers and Operating System
Not relevant, but win10 and chrome.
The text was updated successfully, but these errors were encountered: