Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
453 views
in Technique[技术] by (71.8m points)

docker - how to address a file from dockerfile to windows folders

i want to add a ssh file to my docker file i am doing this on linux and its working fine as below :

RUN mkdir ~/.ssh && echo "StrictHostKeyChecking no" >> ~/.ssh/config 
        && eval "$(ssh-agent -s)" 
        && echo "$SSH_PRIVATE_KEY" >> ~/.ssh/id_rsa 
        && chmod 0400 ~/.ssh/id_rsa 
        && ssh-add ~/id_rsa

while addressing the ~/.ssh/id_rsa works well on ubuntu and its addressing from root . now i want to know how can i address for example my C:/ in this file because its not finding when i write like that . thanks


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...