juanfont / headscale

An open source, self-hosted implementation of the Tailscale control server
BSD 3-Clause "New" or "Revised" License
23.51k stars 1.29k forks source link

[Bug] docker v0.23.0-beta2 #2082

Closed firekirin67 closed 2 months ago

firekirin67 commented 2 months ago

Is this a support request?

Is there an existing issue for this?

Current Behavior

When I deploy and run using the docker image <v0.23.0-beta2>, it exits directly. By running the command docker logs --follow headscale, the following output is displayed:

Error: unknown command "headscale" for "headscale"
Run 'headscale --help' for usage.
unknown command "headscale" for "headscale"

Expected Behavior

·

Steps To Reproduce

docker run \ --name headscale \ --detach \ --volume $(pwd)/config:/etc/headscale/ \ --publish 0.0.0.0:4993:4993 \ --publish 0.0.0.0:4994:4994 \ headscale/headscale:v0.23.0-beta2 \ headscale serve

config.txt

Environment

- OS: Ubuntu-22.04
- Headscale version: v0.23.0-beta2
- Tailscale version:
- Docker versin: 20.10.17

Runtime environment

Anything else?

No response

Marcus1Pierce commented 2 months ago

From https://github.com/juanfont/headscale/releases/tag/v0.23.0-beta2 releases, you must change entrypoint from headscale serve to serve.

So maybe looks like this

docker run
--name headscale
--detach
--volume $(pwd)/config:/etc/headscale/
--publish 0.0.0.0:4993:4993
--publish 0.0.0.0:4994:4994
headscale/headscale:v0.23.0-beta2
serve
kradalby commented 2 months ago

As @Marcus1Pierce mentions, this is addressed in the changelog.

firekirin67 commented 2 months ago

从https://github.com/juanfont/headscale/releases/tag/v0.23.0-beta2版本开始,您必须将入口点从 headscaleserve 更改为serve。

所以可能看起来像这样

docker run
--name headscale
--detach
--volume $(pwd)/config:/etc/headscale/
--publish 0.0.0.0:4993:4993
--publish 0.0.0.0:4994:4994
headscale/headscale:v0.23.0-beta2
serve

Thank you for your reply, the issue has been resolved.