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, 2020 in Docker by anonymous
• 19,610 points
1,084 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, 2020 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, 2020 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, 2020 in Docker by Pistle
• 1,000 points
2,839 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 14, 2018 in Docker by Sophie may
• 10,620 points
1,372 views
0 votes
1 answer

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

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

answered Aug 14, 2018 in Docker by Sophie may
• 10,620 points
1,276 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
• 58,020 points
2,739 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP