-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance Docs for Custom Apps: Base64 Decoding for Testing and Fix 'ng…
…inx-entrypoint.sh: No Such File' Issue on Windows only" (#1479) * Decode the Base64-encoded Environment Variable * add docs to fix nginx-entrypoint.sh: no such file on windows * Revert "add docs to fix nginx-entrypoint.sh: no such file on windows" This reverts commit 395d7cf. * add docs to fix nginx-entrypoint.sh: no such file on windows * Fix files according to pre-commit hooks
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# 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 | ||
``` |