From 2d6e5d750162e25f020a7db13c4c859f0a03a35c Mon Sep 17 00:00:00 2001 From: Edward Almanzar Date: Wed, 2 Oct 2024 15:02:41 -0400 Subject: [PATCH] add docs to fix nginx-entrypoint.sh: no such file on windows --- docs/error-nginx-entrypoint-windows.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 docs/error-nginx-entrypoint-windows.md diff --git a/docs/error-nginx-entrypoint-windows.md b/docs/error-nginx-entrypoint-windows.md new file mode 100644 index 00000000..2a1c5048 --- /dev/null +++ b/docs/error-nginx-entrypoint-windows.md @@ -0,0 +1,10 @@ +# Resolving Docker `nginx-entrypoint.sh` Script Not Found Error on Windows + +If you're encountering the error `exec /usr/local/bin/nginx-entrypoint.sh: no such file or directory` in a Docker container on Windows, follow these steps to resolve the issue. + +## 1. Check Line Endings +On Windows, files often have `CRLF` line endings, while Linux systems expect `LF`. This can cause issues when executing shell scripts in Linux containers. + +- **Convert Line Endings using `dos2unix`:** + ```bash + dos2unix resources/nginx-entrypoint.sh \ No newline at end of file