Skip to content

Docker Desktop on Windows - topolograph-docker/webserver "/docker-entrypoint.sh: 47: exec: /start-nginx.sh: not found" #17

@p51ph1

Description

@p51ph1

PROBLEM:
webserver contain was not running within docker.desktop on Windows.


ANALYSIS:
Docker Desktop Logs: "/docker-entrypoint.sh: 47: exec: /start-nginx.sh: not found"

Convert start-nginx.sh to Unix line endings (Windows CRLF issue). ChatGPT found this.


RESOLUTION (workaround):

1a)
In VS Code: open start-nginx.sh -> bottom-right click CRLF -> change to LF -> save.
*I used this method.

OR

1b)
Quick fix with PowerShell (no extra tools)
From c:\topolograph-docker\webserver:

Convert CRLF -> LF

(Get-Content -Raw start-nginx.sh) -replace "rn","`n" | Set-Content -NoNewline start-nginx.sh

Then rebuild the webserver image and restart.

cd C:\topolograph-docker

Stop stack

docker compose down # or: docker-compose down

Rebuild just the webserver image from your Dockerfile

docker compose build webserver # or: docker-compose build webserver

Bring everything back up

docker compose up -d # or: docker-compose up -d

webserver is now running :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions