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

Command-line parsing is broken if compiled with TINI_MINIMAL #217

Open
jeffdcarter opened this issue Nov 14, 2023 · 0 comments
Open

Command-line parsing is broken if compiled with TINI_MINIMAL #217

jeffdcarter opened this issue Nov 14, 2023 · 0 comments

Comments

@jeffdcarter
Copy link

If tini is compiled with TINI_MINIMAL, the command line parser is bypassed, and it doesn't skip past the "--" that gets passed in by docker --init. This is because getopt() is never called in this case.

This causes docker run to always fail with "exec: --: no such file or directory"

I only discovered this because this is apparently how it is built in this ancient rpm: docker-1.13.1-53.git774336d.el7.centos.x86_64.rpm from CentOS Atomic. Installing a more up-to-date docker rpm that builds it correctly it works fine.

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

1 participant