PwnAdventure3 icon indicating copy to clipboard operation
PwnAdventure3 copied to clipboard

stat /opt/pwn3/setup/masterserver.sh: no such file or directory: unknown

Open VolkerSchlegel opened this issue 4 years ago • 1 comments

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

VolkerSchlegel avatar Feb 07 '22 15:02 VolkerSchlegel

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

DarthVishnu8 avatar May 21 '24 17:05 DarthVishnu8