You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docker/Podman healthcheck fails for signal & relay containers as, apparently, there is no /bin/sh in their base (distroless) image: Error: crun: executable file /bin/sh not found in $PATH: No such file or directory: OCI runtime attempted to invoke a command that was not found
Healthcheck works fine for e.g. management container (as it's Ubuntu-based).
AFAIK the healthcheck mechanism doesn't allow specifying a binary path directly (and so /bin/sh invocation can't be bypassed).
I'm using the following healthcheck snippets for signal & relay, respectively:
As a suggestion on how to make it work - perhaps it's worth creating symlink to the actual shell in the containers' Dockerfiles? One extra line sounds reasonable.
To Reproduce
Steps to reproduce the behavior:
Add the aforementioned healthcheck snippets to the compose file (for signal & relay containers)
Start the compose project
Experience healthcheck errors in system logs
Also experience wrong container health status
Expected behavior
Healthcheck works for singal & relay containers.
Are you using NetBird Cloud?
No.
NetBird version 0.32.0
NetBird status -dA output:
N/A
Do you face any (non-mobile) client issues?
N/A
Screenshots
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Describe the problem
Docker/Podman healthcheck fails for signal & relay containers as, apparently, there is no /bin/sh in their base (distroless) image:
Error: crun: executable file /bin/sh not found in $PATH: No such file or directory: OCI runtime attempted to invoke a command that was not found
Healthcheck works fine for e.g. management container (as it's Ubuntu-based).
AFAIK the healthcheck mechanism doesn't allow specifying a binary path directly (and so
/bin/sh
invocation can't be bypassed).I'm using the following healthcheck snippets for signal & relay, respectively:
As a suggestion on how to make it work - perhaps it's worth creating symlink to the actual shell in the containers' Dockerfiles? One extra line sounds reasonable.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Healthcheck works for singal & relay containers.
Are you using NetBird Cloud?
No.
NetBird version
0.32.0
NetBird status -dA output:
N/A
Do you face any (non-mobile) client issues?
N/A
Screenshots
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: