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

Unknown command or add-on #48

Closed
mkiszka opened this issue Dec 1, 2022 · 2 comments · Fixed by #49
Closed

Unknown command or add-on #48

mkiszka opened this issue Dec 1, 2022 · 2 comments · Fixed by #49
Assignees
Labels

Comments

@mkiszka
Copy link

mkiszka commented Dec 1, 2022

Bug Report

I'm running Docker on:

  • Windows 11 as a Docker host
  • git with core.autocrlf = true (checkout Windows style)

I'm not sure if it's global problem or only mine.

Actual behavior

After building the Dockerfile and running the container, I encountered a problem. The container starts with the error:

Unknown command or add-on! not recognized For help, use /usr/bin/supervisord -h

This was because the Ubuntu shell has a problem with Windows-style line endings in scripts.

Expected behavior

Running without any error

Fix 1:

  • force checkout with unix-style line endings even on Windows by using .gitattributes

Fix 2:

  • change line ending style after coping startup.sh from host to docker image

I will create PR with Fix 1 for a moment.

@tomsik68
Copy link
Owner

tomsik68 commented Dec 1, 2022

Thank you for reporting this! I merged your fix. Let me know if there's anything else that needs to change for this issue.

@mkiszka
Copy link
Author

mkiszka commented Dec 2, 2022

Now, everything's ok. Thanks.

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

Successfully merging a pull request may close this issue.

2 participants