Skip to content

Fix Docker container failing to start with /bin/sh Illegal option error#179

Open
04cb wants to merge 1 commit intoruvnet:mainfrom
04cb:fix/dockerfile-rust-entrypoint-cmd
Open

Fix Docker container failing to start with /bin/sh Illegal option error#179
04cb wants to merge 1 commit intoruvnet:mainfrom
04cb:fix/dockerfile-rust-entrypoint-cmd

Conversation

@04cb
Copy link

@04cb 04cb commented Mar 7, 2026

Fixes #153. The Dockerfile.rust used exec form for CMD (JSON array) with /bin/sh -c ENTRYPOINT, which caused /bin/sh to receive multiple arguments instead of the single command string expected by the -c flag. This resulted in the /bin/sh: 0: Illegal option -- error when running the container with additional arguments like --source esp32.

Changed CMD from exec form to shell form by removing the JSON array brackets, allowing the command to be passed correctly to /bin/sh -c and enabling proper environment variable expansion and argument handling.

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

Successfully merging this pull request may close these issues.

Can't run docker in esp32 mode

1 participant