Capture ouput of docker build into a log file?

I am glad it helped.

When I came back to see your response I noticed I left the --no-cache option in all of my commands. That option is not required of course. You can remove it.