{"slug": "can-i-run-docker-sandboxes-on-raspberry-pi-5", "title": "Can I run Docker Sandboxes on Raspberry Pi 5?", "summary": "Docker Sandboxes sbx v0.54.0 ran real microVMs with an independent kernel, Docker Engine and enforceable network policies on an 8 GB Raspberry Pi 5 Model B, with sandbox creation taking about 8 seconds after the first image pull, according to a single-board test report by Ajeet Raina. Docker's apt repository had no arm64 docker-sbx package for Ubuntu 26.10 as of 22 November 2026, so the test installed the Ubuntu 26.04 .deb from the sbx-releases GitHub page, after which sbx diagnose reported 16 checks passed, 4 skipped and none failed. Inside the sandbox, the guest ran Linux 7.0.14 on aarch64 against the host's 7.3.0 kernel, Docker Engine 29.10.0, a non-root agent user and no host home directory, with the 1 CPU and 1 GB limits holding at nproc 1 and 986 MB free.", "body_md": "# Can I run Docker Sandboxes on Raspberry Pi 5?\n\nYes. A Raspberry Pi 5 with 8 GB RAM can run real Docker Sandbox microVMs, complete with an independent kernel, Docker Engine, and enforceable network policies.\n\n[Docker Sandboxes](https://docs.docker.com/ai/sandboxes/?ref=ajeetraina.com) ([sbx v0.54.0](https://docs.docker.com/ai/sandboxes/release-notes/?ref=ajeetraina.com)) runs on an 8 GB Raspberry Pi 5: [local microVMs](https://docs.docker.com/ai/sandboxes/architecture/?ref=ajeetraina.com) start, run Docker inside themselves and enforce a [network policy](https://docs.docker.com/ai/sandboxes/security/defaults/?ref=ajeetraina.com). After the first pull, creating a sandbox took about 8 seconds.\n\n## **Test setup**\n\nEvery result below comes from one board, with a second sandbox running Claude Code alongside the tests.\n\n| Item | Value | \n|---|---|\n| Board | Raspberry Pi 5 Model B Rev 1.1, 4 Cortex-A76 cores, 2.4 GHz max | \n| Memory | 7.7 GiB usable | \n| OS | Ubuntu 26.10 desktop, arm64 | \n| Kernel | 7.3.0-1003-raspi, 4 KB pages | \n| Storage | 58 GB root volume on `mmcblk0` | \n| Docker Engine on host | Not installed, and not needed | \n\nDocker's [__install page__](https://docs.docker.com/ai/sandboxes/install/?ref=ajeetraina.com) asks for Ubuntu 24.04 or later, a [64-bit Arm processor](https://www.ajeetraina.com/can-docker-sandboxes-run-on-nvidia-arm-i-tried-it-on-a-gh200-with-nvidia-brev/) and KVM. It does not mention Raspberry Pi, so treat this as a report from one board and not a support statement. Raspberry Pi OS was not tested.\n\n## **Install**\n\nFirst confirm that KVM is available and that your user can open it:\n\n```\nls -l /dev/kvm\nsudo usermod -aG kvm $USER   # then sign out and back in\n```\n\nDocker documents two commands for installing sbx without Docker Engine:\n\n```\ncurl -fsSL https://get.docker.com | sudo REPO_ONLY=1 sh\nsudo apt install docker-sbx\n```\n\nThat route was not available on Ubuntu 26.10: on 22 November 2026 Docker's apt repository had no arm64 docker-sbx package for stonking. The 26.04 package from [__the releases page__](https://github.com/docker/sbx-releases?ref=ajeetraina.com) installed cleanly instead:\n\n```\ncurl -fsSLO https://github.com/docker/sbx-releases/releases/download/v0.54.0/DockerSandboxes-linux-arm64-ubuntu2604.deb\necho \"21c12141a3732502cf75c0141245b2090f28803a759961c2a16dbed06bcb51d0  DockerSandboxes-linux-arm64-ubuntu2604.deb\" | sha256sum -c\nsudo apt install ./DockerSandboxes-linux-arm64-ubuntu2604.deb\n```\n\nThe release also has a tarball that installs without root. Ubuntu restricts unprivileged user namespaces, and the AppArmor profile in that tarball covers only /usr/libexec, so the .deb is the safer choice. The tarball route was not tried.\n\nSign in, then check the result:\n\n```\nsbx login\nsbx diagnose\n```\n\nAfter sign-in, [sbx diagnose](https://docs.docker.com/ai/sandboxes/troubleshooting/?ref=ajeetraina.com) reported 16 checks passed, 4 skipped and none failed.\n\n## **A first sandbox**\n\nThis creates a [plain shell sandbox](https://docs.docker.com/ai/sandboxes/agents/shell/?ref=ajeetraina.com) with no host folder attached:\n\n```\nsbx create --name demo --cpus 1 -m 1g shell\nsbx exec demo uname -a\nsbx exec demo docker run --rm hello-world\nsbx stop demo\nsbx rm --force demo\n```\n\nInside, the test sandbox had:\n\n- **Its own kernel:** Linux 7.0.14 on aarch64, while the host ran 7.3.0\n- **Its own userland:** Docker Hardened Images, Debian 13 (trixie)\n- **Its own Docker Engine:** 29.10.0, and hello-world ran\n- **A non-root user:** agent, with -u root available on sbx exec\n- **No host home directory:** it was not visible\n\nThe 1 CPU and 1 GB limits held: nproc returned 1 and free -m showed 986 MB. For a coding agent, run [sbx run claude](https://docs.docker.com/ai/sandboxes/agents/claude-code/?ref=ajeetraina.com) from your project folder.\n\n## **What works**\n\n### **Network policy**\n\nThe policy here [denied anything without a matching rule](https://docs.docker.com/ai/sandboxes/security/defaults/?ref=ajeetraina.com). https://pypi.org returned 200 from inside the sandbox and https://example.com returned 403. A rule scoped to one sandbox changed that at once, and left the global policy alone:\n\n```\nsbx policy check network example.com\nsbx policy allow network --sandbox demo example.com\nsbx policy deny network --sandbox demo pypi.org\nsbx policy log demo\nsbx policy rm network --force --sandbox demo --resource example.com\n```\n\nAfter those rules example.com returned 200 and pypi.org returned 403. The log named the rule behind each block.\n\n### **Ports and files**\n\n```\nsbx port publish demo 18080:8000\nsbx port ls demo\nsbx port unpublish demo 18080:8000\nsbx cp a.txt demo:/tmp/a.txt\nsbx cp demo:/tmp/b.txt b.txt\n```\n\n[A Python web server](https://docs.docker.com/ai/sandboxes/usage/?ref=ajeetraina.com#publish-ports) inside the sandbox answered on 127.0.0.1:18080, and stopped answering after the unpublish. [Copies worked in both directions](https://docs.docker.com/ai/sandboxes/usage/?ref=ajeetraina.com#copy-files-between-host-and-sandbox).\n\n### **Workspaces**\n\n[A folder passed to sbx create](https://docs.docker.com/ai/sandboxes/usage/?ref=ajeetraina.com#choose-a-workspace) is mounted at the same path inside the sandbox, and files written there appear on the host. Adding :ro worked too: a write failed with Read-only file system.\n\n### **Templates**\n\nStop the sandbox, save it, and [start another from the snapshot](https://docs.docker.com/ai/sandboxes/usage/?ref=ajeetraina.com#saving-a-sandbox-as-a-template):\n\n```\nsbx stop demo\nsbx template save demo demo:v1\nsbx create --name demo2 --pull never -t demo:v1 shell ./ws\n```\n\nA file written in the first sandbox was present in the second.\n\n### **Environment files**\n\nThe experimental sbx env commands read an [sbxenv.yaml](https://docs.docker.com/ai/sandboxes/configuration/environment-files/?ref=ajeetraina.com) file:\n\n```\nschemaVersion: \"1\"\nname: demo-env\nagent: shell\nworkspace: ${{ env.projectDir }}\nenv:\n  HELLO: pi5\nsbx env plan\nsbx env create --force\nsbx env exec sh -c 'echo $HELLO'\nsbx env rm --force\n```\n\n## **Timings**\n\nOnly the first create is slow. These are single runs or small samples, with 1 CPU per sandbox and another sandbox running, so read them as a guide and not a benchmark.\n\n| Action | Time | \n|---|---|\n| First `sbx create shell` , including the download | 2 min 15 s | \n| Later `sbx create shell` | 8.4 s | \n| `sbx create` from a saved template | 8.0 s | \n| `sbx exec` on a stopped sandbox, including start (4 runs) | 2.3 to 4.1 s | \n| `sbx exec` on a running sandbox, simple commands | 0.7 to 1.7 s | \n| `sbx stop` | 0.7 to 3.4 s | \n| `docker run --rm hello-world` inside, including the pull | 6.2 s | \n\nMemory is the limit to watch on an 8 GB board. The help text says a sandbox defaults to 50% of host memory, so set -m if you plan to run more than one. With two sandboxes up, the host had about 2.1 GiB available. The kernel log showed no out-of-memory kills. One temperature reading, not taken under sustained load, was 55.7 °C.\n\n## **Things to watch**\n\n- **Sandboxes stop themselves.** The daemon log showed an automatic stop 30 seconds after the last session disconnected. The next sbx exec starts the sandbox again, and its files are kept.\n- **sbx run with no path mounts the current folder.** Use sbx create with no path when you want no host files attached.\n- **sbx template save prompted while the sandbox was running.** Stopping it first avoided the prompt.\n- **Scripts need --force.** Without a terminal, sbx policy rm network refuses to run unless you pass it.\n- **Old and new kits do not mix.** The shell agent now ships as a[v3 kit](https://www.ajeetraina.com/how-i-built-my-first-sbx-kit-v3-from-scratch/) , so adding a[v2 mixin](https://docs.docker.com/ai/sandboxes/customize/kits-v2/?ref=ajeetraina.com) failed with cannot mix v3 kits with v1/v2 kits in one sandbox.\n- **A scoped custom secret did not set the variable.** After[sbx secret set-custom](https://docs.docker.com/ai/sandboxes/configuration/credentials/?ref=ajeetraina.com) on a running sandbox, the[variable was empty](https://www.ajeetraina.com/how-secrets-work-in-docker-sandboxes-local-vs-cloud/) , and the output said it may need updating by hand.\n- **Removing a template can leave its image.** After sbx template rm, sbx template ls still showed a sandbox-kit-assembled image, which needed its own rm.\n- **--clone needs** [**Git on the host**](https://docs.docker.com/ai/sandboxes/usage/?ref=ajeetraina.com#clone-mode)**.** This board had none, so clone mode was not tested.\n- **Some commands are** [**cloud-only**](https://docs.docker.com/ai/sandboxes/cloud/local-vs-cloud/?ref=ajeetraina.com)**.** sbx volume ls, sbx schedule ls and sbx template inspect ask for --cloud.\n\n## **Command coverage**\n\nAll 129 entries found by walking the help output, groups included, answered --help. Of these, 54 were also run successfully, and the main gaps are listed after the table.\n\n| Area | Run successfully | \n|---|---|\n| Lifecycle | `create` ,`run --detach` ,`exec` ,`inspect` ,`ls` ,`cp` ,`stop` ,`rm` ,`prune --dry-run` | \n| Ports | `port publish` ,`port ls` ,`port unpublish` | \n| Policy | `ls` ,`inspect` ,`log` ,`refresh` ,`check network` ,`check http` ,`allow network` ,`deny network` ,`rm network` ,`profile ls` ,`approval ls` | \n| Daemon and host | `version` ,`diagnose` ,`df` ,`daemon status` ,`daemon log-level` ,`completion` for bash, zsh, fish and PowerShell | \n| Settings and secrets | `settings ls` ,`settings get` ,`settings unset` ,`secret ls` ,`secret set-custom` | \n| Templates | `template save` ,`template ls` ,`template rm` | \n| MCP and skills | `mcp add` ,`mcp ls` ,`mcp inspect` ,`mcp rm` ,`mcp auth status` ,`skills ls` | \n| Kits | `kit validate` ,`kit inspect` ,`kit pack` ,`kit builder status` | \n| Environments | `env plan` ,`env create` ,`env exec` ,`env rm` | \n\n**Ran but returned an error:** settings set (the value tried was not valid), kit add (v2 and v3 kits), kit provenance (none attached), policy approval inspect (nothing pending), and the three cloud-only commands under Things to watch.\n\n**Not run:**\n\n- Cloud features, such as attach, move, ttl, and the schedule and volume writes\n- Interactive ones, such as tui and setup\n- Anything disruptive: reset, logout, daemon stop, daemon restart and policy reset\n- Others, including skills add, kit push, kit pull, kit sign and template load\n\n[mcp add](https://docs.docker.com/ai/sandboxes/mcp-gateway/?ref=ajeetraina.com) was checked with a placeholder command, so registration is confirmed but not a working server.", "url": "https://wpnews.pro/news/can-i-run-docker-sandboxes-on-raspberry-pi-5", "canonical_source": "https://www.ajeetraina.com/running-docker-sandboxes-on-raspberry-pi-5/", "published_at": "2026-11-22 10:20:20+00:00", "updated_at": "2026-11-23 14:44:29.416130+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools"], "entities": ["Docker", "Docker Sandboxes", "Raspberry Pi 5", "Ubuntu", "Ajeet Raina", "Claude Code", "GitHub"], "also_reported_by": [], "takeaway": "On an 8 GB Raspberry Pi 5 running Ubuntu 26.10, install the Ubuntu 26.04 arm64 .deb from the sbx-releases GitHub page rather than the get.docker.com repo route, since no arm64 docker-sbx package existed for 26.10 as of 22 November 2026, and sandboxes then start in about 8 seconds with their own kern", "recommendation": {"advice": "Run coding agents like Claude Code inside Docker Sandboxes microVMs with explicit CPU and memory caps and a default-deny network policy, so the agent gets its own kernel and no host home directory.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/can-i-run-docker-sandboxes-on-raspberry-pi-5", "markdown": "https://wpnews.pro/news/can-i-run-docker-sandboxes-on-raspberry-pi-5.md", "text": "https://wpnews.pro/news/can-i-run-docker-sandboxes-on-raspberry-pi-5.txt", "jsonld": "https://wpnews.pro/news/can-i-run-docker-sandboxes-on-raspberry-pi-5.jsonld"}}