Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mockte opened this issue Mar 12, 2024 · 5 comments · Fixed by #2096
Closed

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

mockte opened this issue Mar 12, 2024 · 5 comments · Fixed by #2096
Assignees
Labels
enhancement New feature or request stale

Comments

@mockte
Copy link

mockte commented Mar 12, 2024

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 mockte added the enhancement New feature or request label Mar 12, 2024
@winterheart
Copy link
Contributor

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

@ohdearaugustin
Copy link
Collaborator

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.

@kradalby
Copy link
Collaborator

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

Copy link
Contributor

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

Copy link
Contributor

github-actions bot commented Sep 2, 2024

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

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 2, 2024
nblock added a commit to nblock/headscale that referenced this issue Sep 2, 2024
* Remove a stray sentence
* Remove "headscale" before serve
* Indent line continuation
* Replace hardcoded 0.22 with <VERSION>
* Fix path in debug image to /ko-app/headscale

Fixes: juanfont#1822

aa
kradalby pushed a commit that referenced this issue Sep 3, 2024
* docs/acl: fix path to policy file

* docs/exit-node: fixup for 0.23

* Add newlines between commands to improve readability
* Use nodes instead on name
* Remove query parameter from link to Tailscale docs

* docs/remote-cli: fix formatting

* Indent blocks below line numbers to restore numbering
* Fix minor typos

* docs/reverse-proxy: remove version information

* Websocket support is always required now
* s/see detail/see details

* docs/exit-node: add warning to manual documentation

* Replace the warning section with a warning admonition
* Fix TODO link back to the regular linux documentation

* docs/openbsd: fix typos

* the database is created on-the-fly

* docs/sealos: fix typos

* docs/container: various fixes

* Remove a stray sentence
* Remove "headscale" before serve
* Indent line continuation
* Replace hardcoded 0.22 with <VERSION>
* Fix path in debug image to /ko-app/headscale

Fixes: #1822

aa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants