# xianlubird/mydocker

<<自己动手写docker>> 源码

Repository: https://github.com/xianlubird/mydocker
Canonical: https://ross.abutalabs.com/products/mydocker
Language: Go
License: Apache-2.0
License Family: permissive
Last push: 2021-12-06T02:32:41+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3521, "days_push": 1732, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2124, forks 576 (observed 2026-08-28T04:06:16.761525+00:00)

## What it is
Source code for the Chinese book '自己动手写Docker' (Build Your Own Docker), which guides readers through implementing a minimal container engine in Go. It covers Linux namespaces, cgroups, union filesystems, container lifecycle, and container networking step by step.

## Use cases
- learn how docker works internally by building one in go
- understand linux namespaces and cgroups for containers
- implement a minimal container runtime from scratch
- study container networking with bridge networks
- learn how aufs and union filesystems back docker images
- prepare for working with runC or containerd internals

## When to choose
- you want a hands-on, code-driven path to understanding container internals
- you know Go and want to implement namespaces, cgroups, and overlay filesystems yourself
- you're preparing to work on container runtimes or Kubernetes CRI internals

## When to avoid
- you need a production-ready container engine - use Docker, containerd, or podman
- you want current best practices - the code targets older kernels and AUFS, last released in 2021
- you need English-language documentation - the book and comments are in Chinese

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: container-runtime, developer-tools
- domain: developer-tools, operating-systems, tutorials
- platform: go
- tags: docker-internals, linux-namespaces, cgroups, union-filesystem, aufs, book-source-code, container-engine, chinese-language, education, containers, linux

## Member repositories
- xianlubird/mydocker (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:16.761525+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:52:49.193950+00:00, confidence not recorded.
  - readme: https://github.com/xianlubird/mydocker (fetched 2026-08-28T04:06:16.761525+00:00, sha ffed84135035)
- Data as of 2026-08-30T08:39:29.467469+00:00.
