Advertisement
Guest User

Untitled

a guest
Jan 31st, 2017
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. FROM ubuntu:16.04
  2.  
  3. RUN mkdir -p /root/.ssh
  4. ADD id_rsa /root/.ssh/id_rsa
  5. RUN chmod -R 600 /root/.ssh
  6. RUN chmod 600 /root/.ssh/id_rsa
  7.  
  8. RUN apt-get update && apt-get -y install ssh git
  9.  
  10. RUN ssh-keyscan github.com >> /root/.ssh/known_hosts
  11.  
  12. RUN mkdir -p /home/yo/repo
  13. RUN git clone git@github.com:username/yo.git /home/yo/repo
  14.  
  15. ------------------------
  16.  
  17. Cloning into '/home/yo/repo'...
  18. Warning: Permanently added the RSA host key for IP address 'xxx.xx.xx.xxx' to the list of known hosts.
  19. Permission denied (publickey).
  20. fatal: Could not read from remote repository.
  21.  
  22. Please make sure you have the correct access rights
  23. and the repository exists.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement