How to create namespace on headscale server

Currently you need to create a namespace using the command line.

If running without a container

create_namespace_headscale.sh
headscale namespaces create -n mynamespace

If running using docker-compose:

create_namespace_headscale_docker.sh
docker-compose exec headscale headscale namespaces create mynamespace

If successful, this will show

create_namespace_output.txt
Namespace created

Check out similar posts by category: Headscale, Networking, VPN