Skip to content

View as Markdown

Common questions

Short answers to common questions about BB Box. Each answer links to the page that has the detail.

Is a box a security boundary?

No. BB Box assumes one trusted user, and it is not a sandbox for code you do not trust. How far a box is kept apart depends on its backend. A Docker box is a privileged container by default, which can take over its Docker host. A box on an SSH host pool machine is an ordinary user there, and can read every file that user has permission to read. A shared iOS box is a macOS user of its own on a Mac it shares with other boxes.

Give boxes only machines that hold nothing you would not show them. Turn off Docker in boxes, or use rootless Docker, and Docker boxes run unprivileged, without Docker of their own. See the Docker settings and the SSH host pool.

How does BB Box handle keys and tokens?

BB Box keeps backend secrets, such as API tokens and SSH keys, apart from its settings. Settings and exports show only whether each one is set, never its value. BB Box uses each secret to sign in to the service it is for. See secrets.

Commands in a box that joins BB can get Git credentials and variables through BB, and a project’s variables only while a thread of that project runs there. A box that does not join gets neither through BB. See when a box does not join BB.

For cloud machines on a tailnet, BB Box makes a single-use key for each machine from a Tailscale OAuth client. See Network. A fork gives up its source’s BB credentials, and BB Box checks they are gone before it hands the fork over. Other secrets on the disk stay. See a copy of a box gives up its identity.

What stops a cloud bill running away?

Each cloud backend has a limit on what it runs at once, 2 by default: Most hosts on Hetzner Cloud, Most machines on Namespace and Most boxes on boat.dev. Each Namespace workspace can be a backend of its own, with its own Most machines, and each boat.dev account with its own Most boxes: see several workspaces and several accounts. Hetzner Cloud’s Monthly limit (EUR), 20 by default before VAT, stops BB Box making new hosts, but a busy host keeps running past it. Hetzner has no limit of its own, so set a cost alert in its Console too. While BB Box runs, it deletes a Hetzner host that has had no box for its Idle minutes, 30 by default. See keeping the cost down on Hetzner Cloud.

On Namespace and boat.dev, BB Box keeps renewing a deadline on each machine. If BB Box stops, a boat.dev box stops after its Auto-stop (minutes), 30 by default, and a Namespace machine ends within the hour. A Hetzner host has no such deadline: if BB Box stops for good, delete its hosts yourself. See the auto-stop on boat.dev and checking that nothing is left running on Namespace.

Spares back off when they fail. If a device spare has not booted 10 minutes after it was ready, BB Box makes no spares of its kind for 30 minutes. If a project image’s spare fails to start, BB Box makes no spares of that build for a day. See spares of device boxes and checks.

How long does a box last?

A box belongs to a thread, and lasts until you release it or its thread is archived or deleted. A machine is a box of your own that belongs to no thread, and lasts until you remove it. On Namespace, either ends sooner, at your plan’s limit on how long a machine can live. See the user guide, your machines and what your plan allows on Namespace.

Releasing a box on a virtual machine or container deletes its disk. Releasing a box on an SSH host pool machine removes its box user and that user’s home, or resets the whole machine where you set that up, then lends the machine again: it does not wipe the disk. Copy out what you want to keep first, or keep a snapshot, which outlasts its box until its keep date. See releasing a box and keeping a snapshot.

Do I need hardware of my own?

No. Hetzner Cloud, Namespace and boat.dev each make boxes with no machine of your own. Their machines reach BB’s server through bb connect or the tailnet. With several backends turned on, First with room tries them in order and uses the first with room for the box. See choose a backend and Provider.

Which backend should I start with?

Docker on Linux, microsandbox on a Mac with Apple silicon, and Docker in WSL 2 on Windows. Each runs boxes on the machine that runs BB. See the quick start for what each needs, such as disk space.

Which systems can boxes run?

System Backends
Linux on x86_64 Docker, microsandbox, Proxmox LXC, Proxmox QEMU, SSH host pool, Hetzner Cloud, Namespace, boat.dev
Linux on arm64 Tart, microsandbox, Hetzner Cloud
Linux desktop on x86_64 Docker, microsandbox, Proxmox LXC, Proxmox QEMU, Hetzner Cloud, Namespace, boat.dev
Linux desktop on arm64 Tart, microsandbox, Hetzner Cloud
Linux desktop on a GPU Docker, Proxmox LXC
macOS, with or without a desktop Tart, SSH host pool, Namespace
Windows desktop Proxmox QEMU, and Tart on arm64
iPhone and iPad in the iOS Simulator Tart, SSH host pool, Namespace
Android emulator Proxmox QEMU, boat.dev

See kinds and sizes and backends and boxes.

What does it cost?

BB Box is under the MIT licence. On machines of your own, you pay for the hardware, its power and any software that needs a licence. Cloud backends bill your own account with each provider, and charges can include running machines, image builds, storage and starts. Hetzner Cloud bills BB Box’s host images even when no box runs, and boat.dev bills saved snapshots and starts beyond what your plan includes. See what it costs on Hetzner Cloud, Namespace, boat.dev and a cloud server as a Docker host.

Why does a box say Could not join BB?

The box could not reach BB’s server or finish joining it: its page says why. If BB says to sign in to your bb account, do so, so bb connect can reach BB. Or set Machine access to Manual with an address boxes can reach, and start BB listening there, which makes BB reachable by anything else on that network too. BB Box retries network and DNS failures by itself, and Join BB again on the box’s page tries at once. See when a box does not join BB.