Cannot get it run on my vps #497

Closed
opened 2025-12-29 02:19:07 +01:00 by adam · 1 comment
Owner

Originally created by @iszhi on GitHub (May 3, 2023).

Hello,
It took me days on making it runing on my machine. However, I failed once and once.

I need to find some help here.
Below is my how I run it with docker.

path2install=~/Documents/headscale
cd $path2install
touch db.sqlite

vim config.yaml

docker run \
  --name headscale \
  --detach \
  --volume ~/Documents/headscale/:/etc/headscale/ \
  --publish 8080:8080 \
  --publish 0.0.0.0:19090:9090 \
  headscale/headscale:0.22.1 \
  headscale serve

And my config.yaml is as below:
config1
config2

After I started, I tried to connect it on the same machine. Howver,

image

Originally created by @iszhi on GitHub (May 3, 2023). Hello, It took me days on making it runing on my machine. However, I failed once and once. I need to find some help here. Below is my how I run it with docker. ```bash path2install=~/Documents/headscale cd $path2install touch db.sqlite vim config.yaml docker run \ --name headscale \ --detach \ --volume ~/Documents/headscale/:/etc/headscale/ \ --publish 8080:8080 \ --publish 0.0.0.0:19090:9090 \ headscale/headscale:0.22.1 \ headscale serve ``` And my config.yaml is as below: ![config1](https://user-images.githubusercontent.com/33443222/235883288-648016cf-ae5b-4a8d-8c4a-ee3d15c70eb9.png) ![config2](https://user-images.githubusercontent.com/33443222/235883313-8ad700ac-67d2-4087-a03b-3a3d0758088a.png) After I started, I tried to connect it on the same machine. Howver, ![image](https://user-images.githubusercontent.com/33443222/235883353-0f5ff955-6afb-401b-a555-16d16d0c3619.png)
adam added the bug label 2025-12-29 02:19:07 +01:00
adam closed this issue 2025-12-29 02:19:07 +01:00
Author
Owner

@ohdearaugustin commented on GitHub (May 3, 2023):

Please checkout the discord server, you maybe will find someone that helps you. The listen_address needs to be at 0.0.0.0:8080 as otherwise headscale is only listening on the localhost inside of the docker container. To make it only listen on the localhost of the docker host use:

--publish 127.0.0.1:8080:8080

This should resolve your issue.

@ohdearaugustin commented on GitHub (May 3, 2023): Please checkout the discord server, you maybe will find someone that helps you. The listen_address needs to be at 0.0.0.0:8080 as otherwise headscale is only listening on the localhost inside of the docker container. To make it only listen on the localhost of the docker host use: ``` --publish 127.0.0.1:8080:8080 ``` This should resolve your issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#497