How to get custom (sub)domain?

I self-hosted zrok. I want to use custom domain when I use zrok share public localhost:8080. but didn't find any doc. I searched and found only this issue on github. which flag do I need to use in the client?

I think you're looking for "reserved" shares where you can pick the share name like customized.share.my-self-hosted-zrok.com", right?

see here:

Do you want to run zrok share in Linux, Docker, macOS, or Windows?

The article about reserved shares that @TheLumberjack linked is perfect for understanding the concept of reserved shares, which can be random or vanity/custom if you use the zrok reserve public --unique-name option.

There are a couple of ways to do it if you're running zrok share in Docker, depending on whether you want the share to be always on in the background and isolated from the zrok environment of the Docker host vs. running a container that mounts the Docker host's zrok environment.