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
Spinning up a key server while following the ENV var setup instructions will lead to an invalid key.
Running this to startup the key server
docker run -e DOCKER-SSH-KEY="$(cat ~/.ssh/id_rsa)" --name=keyserver -d mdsol/docker-ssh-exec -server
Then running any build command with a Dockerfile that contains a git clone of a private repo:
RUN docker-ssh-exec git clone -q 'ssh://[email protected]/mdsol/belker-python.git'
Will lead to this error
Step 9/21 : RUN docker-ssh-exec git clone -q 'ssh://[email protected]/mdsol/belker-python.git'
---> Running in d35e5372139e
Broadcasting UDP key request...
Got key from server.
Broadcasting UDP env request...
Recieved env from server
Setting 0 ENV vars from server:
Writing key to /root/.ssh/id_rsa
Running command: git clone -q ssh://[email protected]/mdsol/belker-python.git
Warning: Permanently added the RSA host key for IP address '140.82.114.4' to the list of known hosts.
Load key "/root/.ssh/id_rsa": invalid format
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Using the first (non ENV var) method to spin up the container does work.
The text was updated successfully, but these errors were encountered:
Spinning up a key server while following the ENV var setup instructions will lead to an invalid key.
Running this to startup the key server
Then running any build command with a Dockerfile that contains a git clone of a private repo:
Will lead to this error
Using the first (non ENV var) method to spin up the container does work.
The text was updated successfully, but these errors were encountered: