Invalid key error message while using Docker for Windows

0 votes

Hi all, 

I am using Docker for Windows and creating one image using that. From that image I run a Ubuntu container which also upload a ssh private key file in that for git. 

Now if I do git clone from bash console I am getting an invalid key error message. 

Public key for that repository is uploaded in git but I am getting error permission denied. But if I create the same environment by using Linux docker no issue at all. 

Can someone suggest what could be the issue?

Sep 17 in Docker by anonymous
• 18,300 points
37 views

2 answers to this question.

0 votes
Give a proper permission to that private key as chmod 600 key_name by using git bash in windows.
answered Sep 17 by Aniruddha Tiwari
0 votes
I think the problem is with the key only, generate a new key pair and try with them.
answered Sep 17 by Kim
Thanks, the issue got fixed by creating a new key file.

Related Questions In Docker

0 votes
2 answers

Error while installing Docker for windows 10

RUN cmd as administrator then check use ...READ MORE

answered Aug 26 in Docker by Pistle
• 1,000 points
715 views
0 votes
1 answer
0 votes
1 answer

Error: Docker for Windows not working

The following worked for me: Download VirtualBox 5.03  Reboot ...READ MORE

answered Aug 13, 2018 in Docker by Sophie may
• 10,100 points
491 views
0 votes
1 answer

Error: “Docker for Windows: No hypervisor is present”

I faced the same error and this ...READ MORE

answered Aug 13, 2018 in Docker by Sophie may
• 10,100 points
180 views
0 votes
1 answer
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 57,680 points
838 views