Install Pocket Core and the apps on your server
One command puts Pocket Core, its app installer and any Pocket apps you want on a Linux machine or a Mac (Docker Desktop, OrbStack or Colima); then install, update and remove apps from Core's web page.
On this page
Pocket Core is the hub the Pocket apps sign in through. On any Linux machine with 64-bit x86 or ARM (a mini PC, a NAS, a Raspberry Pi 4 or 5, a VM or a VPS), or on a Mac, one command sets it up:
curl -fsSL https://pockethomelab.com/install.sh | shThe script offers to install Docker if it is missing, writes everything to ~/pocket,
starts Pocket Core with its app installer, and prints the address to open, for example
http://192.168.1.20:8179. Open it from any phone or laptop on the same network and
create your account. (On a VPS it goes a little differently: see On a VPS; on a Mac, see On a Mac.)
The setup there asks three things, and each can wait:
- A secure address: Pocket’s free address (
<random>.box.pockethomelab.net), your own domain on Cloudflare, or just this network’s addresses. - Your apps: the flagship apps, bundles like Office or Media, or single apps.
- Tailscale, for reaching the apps away from home.
Addresses
The same command works everywhere: the script sees whether the machine is on a home network or has a public address (a VPS) and sets itself up for that.
| Where | Command | What you get |
|---|---|---|
| At home (mini PC, NAS, Pi, VM) | curl … | sh |
The setup asks. Pocket’s free address gives https://core.<name>.box.pockethomelab.net on your home network |
| A VPS | curl … | sh |
Pocket joins your tailnet (approve the link it prints) and gets the same kind of name there; nothing open to the internet |
| A Mac | curl … | sh |
As at home, inside Docker Desktop, OrbStack or Colima. See On a Mac |
| Tailnet only, anywhere | curl … | sh -s -- --tailnet |
Like a VPS: for a home box you only want on your tailnet, or a cloud server the script takes for a home one |
| Your own domain on Cloudflare | curl … | sh -s -- --cloudflare-token T --cloudflare-domain example.com |
https://core.pocket.example.com |
| Your own domain elsewhere | curl … | sh -s -- --domain example.com --email you@example.com |
https://core.example.com, open to the internet |
Pocket’s free address never points anywhere the internet can reach: only at a home-network address
(192.168.x, 10.x, 172.16–31.x) or a tailnet one (Tailscale’s 100.x). The certificate comes
from Let’s Encrypt over DNS, so nothing has to be opened on your router. Until you choose, every app
is at http://<this machine>:<port> on your network.
At home, phones on the same network reach the name directly. Away from home, connect Tailscale in
the setup and route your home network over it, or install with --tailnet so Pocket is a device of
its own on your tailnet (then the name works on your tailnet only, at home too).
Reach your apps away from home has the details.
On a VPS
Run the same command. A VPS has a public address, so the script keeps Pocket off the internet and puts it on your tailnet instead:
curl -fsSL https://pockethomelab.com/install.sh | shIt prints a link along the way:
✓ Docker
✓ Closed to the internet (only your tailnet reaches Pocket)
✓ Pocket Core 0.40.0
Add Pocket to your Tailscale: open this link and approve it
https://login.tailscale.com/a/…
Waiting....
✓ On your tailnet as pocket-myserver (100.x.y.z)
✓ Address with a padlock: x7k2m9.box.pockethomelab.net
Pocket is ready: https://core.x7k2m9.box.pockethomelab.net
Open the link on your phone or laptop and approve it; no Tailscale account yet makes one, free.
Then open the address it ends with on any device signed in to the same tailnet, create your
account, and pick your apps. Add --bundle or --apps (and --admin-email) to install apps in
the same run.
- Docker, if the server has none (a
dockercommand without Docker’s engine counts as none). If a firewall of the server’s own (nftables) keeps containers off the internet, it says so and offers to let Docker’s traffic out. - A firewall rule that keeps the ports Pocket’s containers publish off the internet
(
pocket-private.service; SSH and everything else on the server keep working). - Pocket Core and Tailscale, in a container of its own: Pocket is a separate device on your tailnet, even when the server runs Tailscale itself. Nothing to install first.
- Pocket’s free address, pointed at Pocket’s tailnet address, with a Let’s Encrypt certificate.
Pocket’s web server runs inside its Tailscale container, so it needs none of the server’s ports: it sits fine next to nginx, Caddy or anything else already on 80 and 443.
On a Mac
Pocket runs on a Mac too, Apple silicon or Intel. Open Terminal and run the same command:
curl -fsSL https://pockethomelab.com/install.sh | shThe apps run in Docker, so the Mac needs one of these first. Any of them works; the script finds the one you have and starts it if it isn’t running:
| Docker | What it is |
|---|---|
| Docker Desktop | Docker’s own app. Free for personal use |
| OrbStack | A lighter app that does the same. Free for personal use |
| Colima | No app, just the command line: brew install colima docker docker-compose && colima start |
What it prints:
✓ Docker
✓ Pocket Core 0.46.2
Installing apps
cameras .... ok
Pocket is running: http://192.168.1.24:8179
Create your account with you@example.com; the apps are ready (cameras).
Everything else is as on Linux: the folder is ~/pocket, the address is the Mac’s address on
your network, the setup in the browser asks the same three things, and running the command again
updates Pocket. What is different:
- No sudo password. Docker runs as you on a Mac, so the script never asks for one.
- No firewall changes. Docker keeps its containers in a small Linux machine of its own, with its own way out to the internet.
--privateand--tailnetare for Linux. For away from home, connect Tailscale in Core (Settings → System) as on any home machine.
Apps on the same line
Add the apps you want after sh -s -- and they are installed together with Pocket Core:
curl -fsSL https://pockethomelab.com/install.sh | sh -s -- --apps notes,tasks,photos
curl -fsSL https://pockethomelab.com/install.sh | sh -s -- --bundle essentials,media
App names are the last part of their page address (pockethomelab.com/apps/notes → notes).
The bundles are flagship (the 20 everyday apps: Hub, AI, Notes, Tasks, Calendar, Contacts, Files,
Documents, Photos, Mail, Money, Vault, Search, Day, Alerts, Backups, Habits, Health, Watch and Music),
essentials, office, developer, media, family, money and health, the same ones
Pocket Box offers. Every other app is optional: install it from Core whenever you want it. The script asks for the email you will create your account
with (or pass --admin-email); that account becomes the admin of Core and of every app installed
with it. This works for a new install; on a machine that already runs Pocket Core, add apps from
Core instead.
Everything at once
The setup in the browser has options for scripts as well. All of them go after sh -s --:
| Option | What it does |
|---|---|
--apps LIST, --bundle LIST |
Install these apps or bundles right away |
--admin-email E |
The email you will sign up with |
--address pocket |
Pocket’s free address with a padlock (the home-network address, or Pocket’s tailnet one) |
--address plain |
This network’s addresses (the default at home) |
--cloudflare-token T --cloudflare-domain example.com |
Your own domain on Cloudflare (core.pocket.example.com; --cloudflare-name changes pocket) |
--tailnet |
Pocket as its own device on your tailnet, on any Linux machine (a VPS always is) |
--tailscale-key tskey-auth-… |
Join the tailnet with this key instead of the sign-in link |
--private |
Keep the ports Pocket’s containers publish off the internet (Linux; on by itself with --tailnet) |
--host HOST |
The address in the apps’ links before a name is chosen (this machine’s network address) |
--domain DOMAIN --email EMAIL |
Your own domain without Cloudflare, ports 80/443 open to this machine |
--dir DIR, --port PORT, --version X.Y.Z |
Where it lives (~/pocket), Core’s port (8179), a specific release |
--notify URL |
Where update notifications go (an ntfy topic or Apprise URL) |
-y |
Don’t ask anything |
--uninstall |
Remove Pocket from the machine again (see Remove Pocket) |
--uninstall --keep-data |
The same, but ~/pocket stays, with your settings and the apps’ data |
Install, update and remove apps
In Pocket Core, Apps → Install app lists every released Pocket app from the signed app catalog, with what each one needs from the server (for example access to Docker or a media folder) before you press anything. One click downloads the release, gives it a folder and a free port, and connects it to Core: you sign in to it with your Core account, and paired phones see it straight away.
When a new release is out, the app moves to the top of the list with an Update button. Update changes only the version, waits until the new version answers, and goes back to the old one if it does not. Remove app (on the app’s page) stops it and moves its folder, data included, to an archive. Nothing is deleted.
Update Pocket Core
Run the same command again. It keeps your settings (in ~/pocket/.env) and moves Pocket Core and
the installer to the newest release.
When it stops
The script says what is wrong and how to fix it. The usual ones:
- Docker is not installed: answer yes and it installs Docker from get.docker.com. A
dockercommand without Docker’s engine (from Nix or Homebrew, say) counts as not installed. - This Mac has no Docker yet: on a Mac the script doesn’t install Docker. Install Docker Desktop, OrbStack or Colima (see On a Mac), then run the command again.
- Docker isn’t running and didn’t start (Mac): the script starts Docker Desktop, OrbStack or Colima and waits up to three minutes. The first start of Docker Desktop wants you to accept its terms in its window; do that, then run the command again.
- Ubuntu’s mirror is refusing downloads (for example
ba.archive.ubuntu.comanswering 403): answer yes and it switches to the main mirror,archive.ubuntu.com. - apt can’t update its package lists: another repository is broken.
sudo apt updateshows which; fix or remove it, then run the command again. - Ports 80/443 are taken (at home): another web server runs on the machine; stop it, keep this
network’s addresses, or install with
--tailnet, which needs no ports. - A firewall keeps Pocket’s containers off the internet: a hand-made nftables firewall that
drops forwarded traffic stops every container, so Tailscale gets no sign-in link and apps can’t
download. The script notices and offers to fix it: it lets traffic that starts in Docker’s
networks out (and to the ports Docker publishes on the machine), nothing new in from outside,
and a small
pocket-firewall.servicedoes it again after every boot. To do it yourself instead:ct state established,related accept,iifname "docker0" acceptandiifname "br-*" acceptin the forward chain, the last two in the input chain. - Tailscale isn’t connected yet: the sign-in link wasn’t approved in time. Run the command again for a new link; nothing else is redone.
Remove Pocket
The same line with --uninstall takes everything off the machine again:
curl -fsSL https://pockethomelab.com/install.sh | sh -s -- --uninstallIt asks you to type remove, then:
- Gives Pocket’s free address back (or, with your own domain, takes its Cloudflare records away).
- Logs Pocket’s device out of your tailnet.
- Removes every app and Pocket Core: containers, volumes and images.
- Takes out the firewall rules the install added on Linux (
pocket-private, andpocket-firewallif it let Docker through your own firewall). Your firewall’s other rules stay as they were. - Deletes
~/pocket, with your Pocket account and all the apps’ data.
Docker stays installed (on a Mac, Docker Desktop, OrbStack or Colima, which the script starts
if it isn’t running). Your other containers are left alone. Pocket’s device shows as offline in Tailscale afterwards: remove it in the
admin console under Machines. With --keep-data the folder stays, so running the install
again brings everything back as it was. --yes skips the question, for scripts; --dir points
it at an install in another folder.
Prefer a finished box?
Pocket Box is a ready-made system you install from a USB stick, with every app already on it and nightly updates that switch back on their own if a release fails.