Skip to content

Running app via Docker on Mac fails to launch #93

Description

@awhittle3

Issue

I tried running the app on Mac using the provided Docker instructions:

# git clone and cd to repo directory
docker build -t hmm .
docker run --rm -it -v $(pwd):/app/ -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY hmm

I got the following error and the app failed to launch:

env: 'php\r': No such file or directory
env: use -[v]S to pass options in shebang lines

Workaround

I think this issue is due to Windows line endings (\r) being committed to the repo. These steps worked for me to address the issue locally:

brew install dos2unix
find . -type f -exec dos2unix {} \;
# run docker run as usual

This could be addressed on a project level by adding .gitattributes.

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