Skip to content
Active Development · v2.4.x v2.4.13

Cardinal

Flagship Project: Lightweight Daemonless Container Runtime

A static ~5 MB binary in Go that runs OCI containers directly via Linux namespaces (PID, Mount, Net, UTS, IPC), cgroups v2, and OverlayFS with zero background daemon overhead.

Project Overview

Cardinal addresses the challenge of running isolated Linux workloads without the memory and process overhead of persistent background daemons. Unlike traditional container platforms that rely on a continuous daemon, Cardinal spawns container processes and releases host overhead.

The runtime natively supports pulling and extracting OCI images from container registries, bridge and host networking, dynamic port mapping without container restarts (cardinal port add/rm), real-time cgroups v2 resource metrics (cardinal stats), Unix-socket attachments (cardinal attach), and cluster orchestration.

Distributed via native .deb, .rpm, .apk, .snap packages, self-contained AppImage bundles, and raw static binaries.

Architecture & Integration

Pure CLI runtime in Go. Direct Linux kernel interaction via unshare, nsenter, cgroups v2, and Netlink. Dedicated `cardinal serve` mode provides an HTTP API for external management daemons.

Quick Invocation:
cardinal run -d -n web -p 8081:80 nginx:alpine
cardinal stats web
cardinal port add web 9000:9000

Capabilities & Status

Daemonless ArchitectureImplemented

Zero resident background processes between command invocations

~5 MB Static BinaryImplemented

Self-contained binary with zero external dynamic library dependencies

OCI Image CompatibilityImplemented

Direct layer pull and extraction from Docker Hub and compliant OCI registries

Dynamic Port ForwardingImplemented

Live addition and removal of host port mappings without stopping containers

Live cgroups v2 MetricsImplemented

Streaming real-time CPU, RAM, I/O, and PID metrics from cgroup v2 controllers

Cluster Orchestration & FaaSImplemented

Multi-node workload dispatch and serverless function primitives via internal orchestrator

Technologies & Primitives:
GoLinux Namespacescgroups v2OverlayFSiptablesOCI SpecificationUnix Sockets
animesao.work.gd Website · MIT

MIT LicensePermissive

The source code of the animesao.work.gd website (Nuxt 4, Vue 3, Tailwind CSS 4), architecture schematics, and engineering notes are open-source under the MIT License. Commercial and private use, modification, and reproduction are permitted with copyright attribution.

Permissions
  • ✓Commercial use
  • ✓Modification
  • ✓Distribution
  • ✓Private use
Limitations
  • ✕No liability
  • ✕No warranty
Conditions
  • ℹCopyright and license notice (c) 2026 animesao
Full License TextSPDX: MIT
MIT License

Copyright (c) 2026 animesao

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.