TGViewer
Linux - Reddit Linux - Reddit @r_linux · 1.06K subscribers
Post #42170 56
Crate - a daemonless container runtime I built in Go to learn how Docker works

Hey folks,

I’ve been working on Crate for the past few weeks. It’s a small daemonless container runtime written in Go for Linux.

The goal was to understand how container runtimes work under the hood instead of treating Docker/Podman as magic. It launches containers directly, stores state on disk, and supports both rootless and rootful execution.

Currently, it supports the core pieces of a basic container runtime:

pulling and running Docker Hub images
container lifecycle commands like run, create, start, stop, ps, logs, and rm
Linux namespaces for process, mount, hostname, user, and network isolation
root filesystem setup with pivot_root / chroot
bind mounts, image env/CMD/entrypoint handling, and interactive PTYs
rootless private networking with pasta and port publishing (doesn't support networking in root gonna add that soon)

I’ve also written a small guide/docs series for anyone else who wants to understand or build something similar: docs

It’s still experimental and not production-ready. Big missing pieces include cgroups/resource limits, stronger security hardening, full OCI compliance, better registry support, multi-platform support and probably a million other things that Im forgetting.

Repo: https://github.com/aayushkdev/crate/

I’m still improving it, so I’d love to hear feedback, ideas, or suggestions. If you like the project, a star on GitHub would mean a lot.

https://redd.it/1tyk9r0
@r_linux
GitHub crate/docs at main · aayushkdev/crate Crate is a small daemonless container runtime for Linux written in Go, with support for both rootless and rootful execution. - aayushkdev/crate
More from @r_linux
  1. Oct 9, 2026Using linux as Photographer / Video Editor I've been trying to make a serious switch into…
  2. Oct 9, 2026Valve Lands VK_AMD_anti_lag Support For AMD RADV Driver In Mesa 26.3 https://www.phoronix.…
  3. Oct 9, 2026COSMIC Epoch 1.10.0 released https://github.com/pop-os/cosmic-epoch/releases/tag/epoch-1.1…
  4. Oct 8, 2026Patches Updated To Begin Removing The Linux x32 ABI https://www.phoronix.com/news/Patches-…
  5. Oct 8, 2026EXT4 Deprecates Its Journaled "data=journal" Mode https://www.phoronix.com/news/EXT4-Depre…
  6. Oct 8, 2026Ubuntu Currently Suffering From Sustained DDoS Attack https://www.phoronix.com/news/Ubuntu…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →