headscale icon indicating copy to clipboard operation
headscale copied to clipboard

Error: unknown command "headscale" for "headscale" Running headscale in a container

Open mockte opened this issue 11 months ago • 4 comments

URL: https://github.com/juanfont/headscale/blob/v0.23.0-alpha5/docs/running-headscale-container.md

when I start docker container, get error:

[root@LESSZHDEVPR01 headscale]# docker logs headscale Error: unknown command "headscale" for "headscale" Run 'headscale --help' for usage. unknown command "headscale" for "headscale"

how can I fixed it?

mockte avatar Mar 12 '24 08:03 mockte

Hello.

0.23.0-alpha5 changes way to run headscale in container (https://github.com/juanfont/headscale/releases/tag/v0.23.0-alpha5). You need to change headscale serve to serve on launch command. I.e.:

docker run \
  --name headscale \
  --detach \
  --volume $(pwd)/config:/etc/headscale/ \
  --publish 127.0.0.1:8080:8080 \
  --publish 127.0.0.1:9090:9090 \
  headscale/headscale: 0.23.0-alpha5 \
  serve

winterheart avatar Mar 12 '24 09:03 winterheart

The documentation is currently still for the stable version 0.22.3. You can just run the stable version or join the discord to discuss with people to run the newer alpha version.

Some new documentation should be available in the future.

ohdearaugustin avatar Mar 14 '24 22:03 ohdearaugustin

I've assigned @ohdearaugustin , hope you can help us update the docs when 0.23.0 is about to be released

kradalby avatar May 27 '24 14:05 kradalby

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Aug 26 '24 01:08 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Sep 02 '24 01:09 github-actions[bot]