stat /opt/pwn3/setup/masterserver.sh: no such file or directory: unknown
VolkerSchlegel opened this issue · 1 comments
VolkerSchlegel commented
Output from docker-compose up
: ```
[+] Running 4/4
- Network pwnadventure3-master_default Created 0.8s
- Container pwnadventure3-master-init-1 Created 0.2s
- Container pwnadventure3-master-master-1 Created 0.2s
- Container pwnadventure3-master-game-1 Created 0.2s
Attaching to pwnadventure3-master-game-1, pwnadventure3-master-init-1, pwnadventure3-master-master-1
pwnadventure3-master-init-1 exited with code 0
Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "/opt/pwn3/setup/masterserver.sh": stat /opt/pwn3/setup/masterserver.sh: no such file or directory: unknown
OS: Windows
DarthVishnu8 commented
I got a similar error but on adding some dos2unix conversion commands to the Dockerfile I was able to solve it. Basically windows is doing some file ending formatting issues which can be fixed by adding the line
RUN apt-get update && apt-get install -y \ vim \ postgresql \ dos2unix \ && rm -rf /var/lib/apt/lists/*
and
RUN find . -type f -name '*.sh' -exec dos2unix {} \;
in the end