I have a simple Docker file as shown below:
FROM ubuntu:14.04 RUN apt-get update RUN apt-get -y upgrade RUN mkdir -p /root/.ssh RUN touch /root/.ssh/known_hosts RUN ssh-keyscan github.com >> /root/.ssh/known_hosts
The result of work:
docker build -no-cache -t testimage .
is an:
Step 5 : RUN ssh-keyscan github.com >> /root/.ssh/known_hosts ---> Running in e11ef5962a11 /bin/sh: 1: ssh-keyscan: not found
source share