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

Headscale container keeps restarting #1775

Closed
1 of 2 tasks
guilherme-n-l opened this issue Feb 18, 2024 · 4 comments
Closed
1 of 2 tasks

Headscale container keeps restarting #1775

guilherme-n-l opened this issue Feb 18, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@guilherme-n-l
Copy link

guilherme-n-l commented Feb 18, 2024

Bug description

After installing using this docker compose code, I keep getting this in the logs before the container restarts and tries again.

version: '3.5'
services:
  headscale:
    image: headscale/headscale:latest
    container_name: headscale
    volumes:
      - {my config directory}:/etc/headscale
    ports:
        - 8181:8181
        - 9090:9090
    command: headscale serve
    restart: unless-stopped
  headscale-ui:
    image: ghcr.io/gurucomputing/headscale-ui:latest
    restart: unless-stopped
    container_name: headscale-ui
    ports:
        - 9999:80
2024-02-19 00:16:53 Error: unknown command "headscale" for "headscale"
2024-02-19 00:16:53 Run 'headscale --help' for usage.

the headscale-ui container works ok.

Environment

  • Version of headscale: latest
  • OS: Windows 11 (Docker Desktop)
  • Docker version: 4.27.2
  • Headscale is behind a (reverse) proxy
  • Headscale runs in a container
@guilherme-n-l guilherme-n-l added the bug Something isn't working label Feb 18, 2024
@fcodes0
Copy link

fcodes0 commented Feb 18, 2024

+1, running into the same error

@tsvico
Copy link

tsvico commented Feb 18, 2024

#1760 (comment)

@guilherme-n-l
Copy link
Author

guilherme-n-l commented Feb 18, 2024

#1760 (comment)

Thanks.

@fcodes0 just add to the compose file. Also change the command from "headscale serve" to "serve":

volumes:
  - ...
  - /var/run/headscale
command: serve

@Kingwayer
Copy link

Kingwayer commented Jun 4, 2024

#1760 (comment)

Thanks.

@fcodes0 just add to the compose file. Also change the command from "headscale serve" to "serve":

volumes:
  - ...
  - /var/run/headscale
command: serve

I have same problem and did what you did but still same, can you test it again?

@fcodes0 just add to the compose file. Also change the command from "headscale serve" to "serve":
volumes:

  • ...
  • /var/run/headscale
    command: serve

see my docker-compose.yml below as almost fully copied from yours.

`
version: '3.5'
services:
headscale:
image: headscale/headscale:latest
container_name: headscale
volumes:
- /opt/headscale:/etc/headscale
- /var/run/headscale <----------- added this line

ports:
    - 8181:8181
    - 9090:9090
command: headscale serve                    <--- changed to serve
restart: unless-stopped

headscale-ui:
image: ghcr.io/gurucomputing/headscale-ui:latest
restart: unless-stopped
container_name: headscale-ui
ports:
- 9999:80
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants