Run a node
Quick install
One command starts a node. One code links it to your account.
On this page
Run the installer
On the machine that will be your node:
curl -fsSL https://hopbits.io/install.sh | sudo shIt downloads the SHA-256-verified release binary, builds a hardened local image (
hopbits/agent:local), creates thehopbits-datavolume and starts a container namedhopbits-agent.Copy the pairing code
The installer ends by printing the node's first log lines. Find the line that says
PAIRING CODEand note its 8 characters. To see the log again:sudo docker logs hopbits-agentPair it in the dashboard
Open the operator dashboard. Under Pair with 8-character code, type the code and press Pair node. A code is valid for 15 minutes.
See it online
The node appears under Connected nodes and starts taking jobs.
What the installer does
- Checks that Docker is installed and that it can reach it.
- Downloads
SHA256SUMSand the Linux release binary (x86_64orARM64) fromhttps://hopbits.io/releases, verifies its SHA-256 digest, and builds a hardened local distroless image (hopbits/agent:local). - Creates the
hopbits-datavolume and replaces any earlierhopbits-agentcontainer. - Starts the container with
--restart=always,--cap-drop ALLandno-new-privileges, connecting outbound towss://api.hopbits.io/v1/node. - Prints the last log lines, with the pairing code.
It is a short shell script. Read it before you run it: hopbits.io/install.sh.
Installer options
Set an option in front of the command, and call sudo with -E so it is passed on:
curl -fsSL https://hopbits.io/install.sh | HOPBITS_DAILY_MB=100 sudo -E sh
| Option | Default | What it does |
|---|---|---|
HOPBITS_NETWORK_MODE | host | host or bridge. See Host or bridge. |
HOPBITS_DAILY_MB | 200 | A lower daily cap for measurement traffic, in MB. |
HOPBITS_ENROLL | None | An enrolment token, to skip pairing by hand. See Enrol a fleet. |
HOPBITS_DISABLE_KINDS | None | Comma-separated check kinds to disable (http, tcp_connect, icmp_ping). |
HOPBITS_AUTO_UPDATE | true | Set to false to disable automatic signed release updates. |
HOPBITS_IMAGE | hopbits/agent:local (verified build) | Pull and run a custom pre-built image instead of building locally. |
HOPBITS_CONTAINER_NAME | hopbits-agent | The name of the container. |
HOPBITS_VOLUME_NAME | hopbits-data | The name of the volume. |