Skip to content

Quick Start

Efkan edited this page Dec 2, 2026 · 3 revisions

Quick Start

Five minutes from an installed host to a running capsule. Install first: Installation.

1. Make a signing key

A host runs only what a key it trusts has sealed.

capsule keygen dev
sudo cp dev.pub /etc/capsule/trust.d/

dev.key is the secret half. Keep it off the hosts that only run capsules.

2. Make a capsule

Any root filesystem will do, as a directory or a tarball. Here, a small Alpine one:

curl -LO https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/x86_64/alpine-minirootfs-3.20.3-x86_64.tar.gz
capsule init -rootfs alpine-minirootfs-3.20.3-x86_64.tar.gz hello

hello/ now holds capsule.json (the manifest) and rootfs/. Edit the manifest to say what to run and what it may use.

3. Seal it and run it

capsule seal -key dev.key hello
sudo capsule run hello          # or without sudo, in a user namespace

Change anything in hello/ and run refuses until it is sealed again. capsule inspect hello says whether this host would run a capsule and, if not, why.

4. Look at what is running

capsule ps                      # running capsules, with usage and limits
capsule metrics                 # how each has done over time, and what is out of the ordinary
capsule dashboard               # the same as a page with charts; it prints an address to open
capsule kill <id>
capsule log                     # the host's signed record of every run and refusal

Where to go next

You want to Read
Publish a port, keep data in a volume, run as a service Guide, sections 4 and 5
Require approvals or a time lock before it runs Guide, section 6
Let capsules talk to each other Guide, section 7
Run on more than one host Guide, section 9
Run without root Guide, section 11
Package a Python or Java application Examples

Clone this wiki locally