Um blog sobre nada

Um conjunto de inutilidades que podem vir a ser úteis

Docker + Windows – error: "exited with code 127"

Posted by Diego on March 25, 2020


Problem: on Windos, when cloning a repo from git that has bash files, you may get the above error in one of the bash files.

Explanation: It turns out that windows and git have a problem with “end of line” characters as a cloned repository will contain crlf line breaks, instead of lf (more info here).

Solution: clone your repo with the “–config core.autocrlf=input” option.

Leave a comment