Repository navigation
Quick Start
Five minutes from an installed host to a running capsule. Install first: Installation.
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.
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 hellohello/ now holds capsule.json (the manifest) and rootfs/. Edit the manifest to say what to run and what it may use.
capsule seal -key dev.key hello
sudo capsule run hello # or without sudo, in a user namespaceChange 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.
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| 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 |
capsule is source-available under the Functional Source License 1.1 (Apache 2.0 after two years). This wiki describes release 0.16.0; the documentation in the repository is the reference for each version.
capsule
In the repository