Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
VolkerSchlegel opened this issue Feb 7, 2022 · 1 comment

Comments

@VolkerSchlegel
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants