Windows Docker setup: docker compose up fails due to CRLF line endings in executable scripts #13039
Debajeet-1411
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I'm setting up the Open Library development environment on Windows using Docker Desktop and followed the official setup guide.
During setup I consistently ran into an issue where
docker compose up -dfailed because the Solr container exited with status code127.The relevant log was:
After some debugging, I found that the shell scripts under the
docker/directory had been checked out with CRLF line endings (Git's default behavior on Windows withcore.autocrlf=true).Converting those scripts from CRLF to LF allowed the Solr container to start successfully.
I then encountered a similar issue with executable Python scripts:
which was also resolved by converting the relevant scripts to LF line endings.
At this point, most of the Docker services are running, but I'm still investigating application-level issues (Infobase connectivity and all routes returning 404s), so I'm not yet sure whether those are expected for a fresh development setup or are related.
Before opening a GitHub issue, I wanted to ask:
.gitattributes) to ensure executable scripts are always checked out with LF?If it's a reproducible issue, I'd be happy to open an issue or submit a PR to improve the Windows setup documentation.
Thanks!

Beta Was this translation helpful? Give feedback.
All reactions