Can't build docker. Asking for github.com fingerprint accept

I just answered a similar question in another topic. Use a User SSH Key and it’ll checkout as said user which in turn sets the known_hosts.