Skip to content

Improve diagnostics when /bin/sh is unavailable#11847

Open
karthiksai15 wants to merge 1 commit into
testcontainers:mainfrom
karthiksai15:fix-3317-no-bin-sh-diagnostics
Open

Improve diagnostics when /bin/sh is unavailable#11847
karthiksai15 wants to merge 1 commit into
testcontainers:mainfrom
karthiksai15:fix-3317-no-bin-sh-diagnostics

Conversation

@karthiksai15

Copy link
Copy Markdown

Some container images do not include /bin/sh (for example, scratch or distroless images).

In this case, InternalCommandPortListeningCheck fails with exit code 127, but the warning message does not clearly explain the reason.

This change adds a more specific warning message when /bin/sh is not available and includes the original error message to help users understand the problem more quickly.

Fixes #3317

@karthiksai15 karthiksai15 requested a review from a team as a code owner June 18, 2026 10:21
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.

InternalCommandPortListeningCheck always fails for containers built without /bin/sh

1 participant