SHARE
TWEET

Untitled

a guest Jan 31st, 2017 144 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top