Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile ssh-keyscan fails #6

Closed
b0ric opened this issue Jun 12, 2018 · 2 comments
Closed

Dockerfile ssh-keyscan fails #6

b0ric opened this issue Jun 12, 2018 · 2 comments

Comments

@b0ric
Copy link

b0ric commented Jun 12, 2018

Image build fails for me on this step:

RUN ssh-keyscan -t rsa bitbucket.org >> /root/.ssh/known_hosts
&& ssh-keyscan -t rsa github.com >> /root/.ssh/known_hosts

with the following error:

/bin/sh: 1: cannot create /root/.ssh/known_hosts: Directory nonexistent

Let's change it to

RUN mkdir /root/.ssh && chmod 0700 /root/.ssh
&& ssh-keyscan -t rsa bitbucket.org >> /root/.ssh/known_hosts
&& ssh-keyscan -t rsa github.com >> /root/.ssh/known_hosts

what do you think?

@BretFisher
Copy link
Owner

Yea let me change that, thanks!

@BretFisher
Copy link
Owner

Fixed, thanks @b0ric

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants