Developer tools · container runtime
systemd-nspawn
Hacker Approved
Recommended for lightweight, systemd-integrated containers that run without a kernel of their own; critics note weak bind mount support and poor image tooling.
Summarized from 34 comments.
Recommended for lightweight, systemd-integrated containers that run without a kernel of their own; critics note weak bind mount support and poor image tooling.
- recommend
- 21
- criticize
- 5
- months recommended
- 8 of 13
Why people love it
Easy to set up and spin up · 2
I've found these to be fairly easy to setup and quite natural if you're already used to the linux ecosystem
May 2026 · commentSystemd-nspawn containers are super easy to spin up
Jan 2026 · commentFast, lightweight, no kernel needed · 2
nspawn containers aren't really any different to regular system images/archives other than they don't need a kernel.
Jan 2026 · commentIt ends up being fast and lightweight.
Sep 2026 · commentPowerful, deeply kernel-aware options · 2
it has all the options you would ever want, and is actually deeply aware of the kernel capabilities.
Oct 2026 · commentsystemd-nspawn can be quite powerful
Nov 2025 · commentGood for rootless, ephemeral containers · 2
I find nspawn to be a pretty simple way of doing rootless containers
Dec 2025 · commentI usually just switch to systemd-nspawn --ephemeral containers
Jul 2026 · comment
What people warn about
Weak bind mount support · 3
Nspawn has a lot of issues with bind mounts in general. They've never been fixed because pottery doesn't see the point.
Oct 2026 · commentI found a bug with nspawn that it can't bind mount while being in the mode which lets you delegate namespaces
Oct 2026 · commentIt's annoying you have to edit the config.nspawn to mount a directory
Jul 2026 · comment
What hackers pick instead
- PodmanA daemonless, rootless-by-default Docker alternative with systemd and Kubernetes-style pod integration; expect occasional Docker incompatibilities and extra setup work.276recommend
- OrbStackA fast, lightweight Docker Desktop replacement for macOS that runs containers and Linux VMs with little memory overhead; the per-seat license and closed-source model put some teams off.97recommend
- Apple containerApple's free, lightweight Linux container runtime for Mac; people value its per-container VM isolation and fast startup. Common caveats: missing Docker features and networking bugs.56recommend
- gVisorRecommended as a sandbox that intercepts syscalls so workloads never touch the host kernel, and it works without KVM. Main caveat: performance overhead and compatibility gaps.45recommend
- ColimaFree, open source Docker Desktop alternative for macOS that is easy to set up and reliable. Critics say it is slow.39recommend
Every quote
The 29 most detailed of 34 comments. Each links to the original.
nspawn containers aren't really any different to regular system images/archives other than they don't need a kernel.
Mixed · Jan 2026 · in “Lennart Poettering, Christian Brauner founded a new company”
I've found these to be fairly easy to setup and quite natural if you're already used to the linux ecosystem
Recommends · May 2026 · in “Codex just found a "workaround" of not having sudo on my PC”
it has all the options you would ever want, and is actually deeply aware of the kernel capabilities.
Recommends · Oct 2026 · in “Show HN: Pi pod – Run your pi coding agent in sandboxes on your own server”
It's annoying you have to edit the config.nspawn to mount a directory
Mixed · Jul 2026 · in “Show HN: Clawk – Give coding agents a disposable Linux VM, not your laptop”
I find nspawn to be a pretty simple way of doing rootless containers
Recommends · Dec 2025 · in “Building small Docker images faster”
I usually just switch to systemd-nspawn --ephemeral containers
Recommends · Jul 2026 · in “Show HN: A lightweight CLI tool to track and purge temporary packages in Linux”
Systemd-nspawn containers are super easy to spin up
Recommends · Jan 2026 · in “Gentoo Linux 2025 Review”
It ends up being fast and lightweight.
Mixed · Sep 2026 · in “Show HN: NSL – WSL for Linux”
systemd-nspawn can be quite powerful
Recommends · Nov 2025 · in “Landlock-Ing Linux”
Nspawn has a lot of issues with bind mounts in general. They've never been fixed because pottery doesn't see the point.
Criticizes · Oct 2026 · in “A whirlwind tour of systemd-nspawn containers (2025)”
I found a bug with nspawn that it can't bind mount while being in the mode which lets you delegate namespaces
Criticizes · Oct 2026 · in “A whirlwind tour of systemd-nspawn containers (2025)”
Systemd allows you to make containers via nspawn, which are defined just about the exact same as you do a regular systemd service.
Recommends · Dec 2025 · in “Systemd v259”
Its nice having the flexibility for both system containers and application containers.
Recommends · Oct 2026 · in “Docker is weird”
nspawn has to be one the most underrated (and 100% optional ofc) components
Recommends · Jun 2026 · in “You Don't Love Systemd Timers Enough”
it really makes a wonderful way of running distroless, immutable containers
Recommends · Nov 2025 · in “Immutable Software Deploys Using ZFS Jails on FreeBSD”
systemd nspawn is actually pretty awesome, though not many people use it.
Recommends · Jan 2026 · in “The Browser Is the Sandbox”
The surface area is far smaller and they're way easier to inspect.
Recommends · Jul 2026 · in “Ditching Vagrant: VMs with KVM and Virsh on Debian”
The combination feels quite powerful if you are in the ecosystem.
Recommends · Oct 2026 · in “A whirlwind tour of systemd-nspawn containers (2025)”
if that's your preference https://nspawn.org is just right.
Recommends · Sep 2026 · in “Show HN: NSL – WSL for Linux”
systemd-nspawn being a hidden gem for this usecase
Recommends · Nov 2025 · in “Immutable Software Deploys Using ZFS Jails on FreeBSD”
It uses systemd-nspawn, and it's great.
Recommends · Jan 2026 · in “Using Proxies to Hide Secrets from Claude Code”
I already use nspawn for containers
Recommends · Jul 2026 · in “Ditching Vagrant: VMs with KVM and Virsh on Debian”
nspawn feels like a natural choice
Recommends · Oct 2026 · in “Docker is weird”
This is a replacement for docker.
Recommends · May 2026 · in “Codex just found a "workaround" of not having sudo on my PC”
it does look pretty danged neat
Recommends · Jul 2026 · in “Ditching Vagrant: VMs with KVM and Virsh on Debian”
it was basically ready to go
Recommends · Oct 2026 · in “Docker is weird”
The problem is that the tooling for creating, importing, and managing images is not as good with systemd
Criticizes · May 2026 · in “Codex just found a "workaround" of not having sudo on my PC”
I think I and lot of others lack a clear instruction how to use it
Criticizes · Oct 2026 · in “Show HN: Pi pod – Run your pi coding agent in sandboxes on your own server”
doesn't provide separation from the host like podman does
Criticizes · Oct 2026 · in “A whirlwind tour of systemd-nspawn containers (2025)”
Counts from 1,795,640 Hacker News comments, Nov 2025 to Nov 2026. How we count · Report a mistake