Skip to content

Tailscale container hook fails on images without apt/apk/pacman #2650

Description

share/docker/tailscale_container_hook only detects apt-get, apk, and pacman. Anything else fails with ERROR: Detection from Package Manager failed! and the container starts without Tailscale.

Example with searxng/searxng (Void Linux base, no xbps in runtime image):

docker run --rm --entrypoint sh searxng/searxng:latest -c '
  wget -qO /tmp/hook https://raw.githubusercontent.com/unraid/webgui/master/share/docker/tailscale_container_hook
  ORG_ENTRYPOINT=/bin/true ORG_CMD= ORG_POSTARGS= sh /tmp/hook
'
Detecting Package Manager...
ERROR: Detection from Package Manager failed!
ERROR: Unraid Docker Hook script throw an error!
       Starting container without Tailscale!

I'll open a PR adding xbps-install detection plus a static-binary fallback (static jq + the existing static Tailscale tarball) for images with no supported package manager. The Tailscale tarball already works inside searxng/searxng - verified tailscaled boots and reaches the control plane - so the only missing piece is jq, which also ships as a static binary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions