Spring Cloud Config Server cannot connect to git over ssh in Docker Spring Cloud Config Server cannot connect to git over ssh in Docker docker docker

Spring Cloud Config Server cannot connect to git over ssh in Docker


The problem come from the ssh config file replace the RUN command with this one

RUN bash -c 'echo -e "Host [MASKED DOMAIN]\n\tStrictHostKeyChecking no\n" >> /root/.ssh/config >> /root/.ssh/config'