LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

nucleus

Lightweight, security-hardened container runtime

TLDR

Run a command in an isolated container
$ nucleus run [image] [command]
copy
Run with a memory and CPU limit
$ nucleus run --memory [512m] --cpus [2] [image] [command]
copy
Run detached in the background
$ nucleus run --detach [image] [command]
copy
List running containers
$ nucleus ps
copy
View the logs of a container
$ nucleus logs [container]
copy
Stop a running container
$ nucleus stop [container]
copy

SYNOPSIS

nucleus subcommand [options] [image] [command]

DESCRIPTION

nucleus is a lightweight, declarative container runtime aimed at ephemeral agent sandboxes and long-running production services. Rather than layering a heavy daemon on top, it drives Linux kernel primitives directly (namespaces, cgroups, seccomp, and Landlock) to create isolated execution environments with minimal overhead.It runs in distinct modes. The default agent mode creates ephemeral sandboxes with best-effort isolation, while strict agent mode is fail-closed: it refuses to start unless cgroup creation, seccomp filtering, and Landlock enforcement all succeed. A production mode targets long-running services with declarative configuration, reproducible root filesystems, egress policy, health checks, and systemd integration. Subcommands cover the usual lifecycle (run, create, ps, logs, stop, attach) plus multi-container topologies via compose and seccomp profile generation from syscall traces.

PARAMETERS

run

Create and start a container from an image or root filesystem.
create
Define a container from a JSON or TOML configuration without starting it.
ps
List containers.
logs
Show a container's output.
stop
Stop a running container.
attach
Attach to a running container's streams.
compose
Bring up a multi-container topology.
--memory SIZE
Limit the container's memory.
--cpus N
Limit the number of CPUs.
--network MODE
Select the networking mode for the container.
--rootfs PATH
Use the given root filesystem.
--seccomp-profile FILE
Apply a seccomp profile to the container.
--landlock-policy SPEC
Apply a Landlock filesystem access policy.
--detach
Run the container in the background.

CAVEATS

nucleus relies on modern Linux kernel features such as cgroups v2, seccomp, and Landlock; strict agent mode fails closed when any of them are unavailable, so older kernels may only support the degraded agent mode. It is Linux-specific and not a drop-in replacement for the full Docker or OCI tooling ecosystem.

SEE ALSO

podman(1), docker(1), runc(8), bwrap(1), systemd-nspawn(1)

RESOURCES

Copied to clipboard
Kai