| Primary Purpose | Complete container platform: image management, lifecycle, networking, storage, orchestration, monitoring, user experience. | OCI runtime: executes an OCI bundle (config.json + rootfs) as a process with namespaces & cgroups. | Lightweight namespace container for simple isolation, chroot-like environments, or systemd service execution. |
| Image Management | docker run automatically pulls, caches layers, manages local image store. | LOSS: No image management. Expects a pre-prepared OCI bundle (config.json and rootfs/). You need to extract images manually (e.g., skopeo copy, podman save). | LOSS: No image management (not OCI-native). Expects a root filesystem directory. Can use bootctl pull or machinectl pull for system images, but not OCI layers. |
| Container Lifecycle | run, start, stop, restart, pause, unpause, rm, ps. Tracks containers by name/ID. Auto-restart policies. | LOSS: Only run (blocks until process exits), kill, state. You manage PIDs/processes manually. No persistence, no auto-restart. | systemd-nspawn (blocks). Can be run as a systemd service (machinectl start/stop/status) for daemonization. Better lifecycle than runc but less comprehensive than Docker. |
| Networking | Custom networks (bridge, overlay), DNS resolution, service discovery, port mapping (-p), network aliases. | LOSS: No networking. You must manually configure network namespaces, veth pairs, bridges, IP addresses, and iptables rules before calling runc. | Basic networking: host (--network-host), private veth pair (--private-network), bridge (--network-bridge). No service discovery or built-in port mapping. Needs manual iptables for port forwarding. |
| Volume Management | Named volumes, bind mounts (-v), tmpfs mounts, volume drivers, clean up. | LOSS: Only bind mounts, defined in config.json. No named volumes, no automatic cleanup. | Bind mounts via --bind. No named volumes. |
| Logging & Monitoring | Centralized logging drivers (json-file, syslog, journald), docker logs, docker stats (resource usage). | LOSS: Only STDOUT/STDERR from the container process. No built-in logging system or metrics collection. You must implement your own. | If systemd runs inside, journalctl -M can collect logs. Basic resource info via systemd-cgtop. |
| Resource Limits | Easy cpu-shares, memory, ulimits, etc. CLI flags. | COMPLEXITY: All cgroup/resource limits must be manually specified in the config.json. Requires deep knowledge of cgroup hierarchy and syntax. | Some resource limits can be applied via systemd cgroup properties if run as a systemd service. Less granular than OCI config.json. |
| Security Features | Simplified seccomp profiles, AppArmor/SELinux integration, user namespaces (--userns). | COMPLEXITY: All security configurations (capabilities, seccomp, AppArmor/SELinux profiles, user namespaces mapping) must be manually and correctly specified in config.json. | Basic namespace isolation. Less granular control over capabilities, seccomp, or user namespaces than OCI. |
| Higher-Level Features | Health checks, automatic restarts, secrets management, configuration management, daemon with REST API, multi-container (Compose/Swarm). | LOSS: None. Pure runtime. | Can be managed by systemd units. No inherent orchestration, health checks, or secrets management. |
| User Experience (CLI) | User-friendly, intuitive commands, tab completion, consistent naming. | DIFFICULTY: Low-level, requires precise JSON configuration. Error-prone manual setup. | Simpler than runc, but less consistent and feature-rich than Docker CLI. Integrates with systemd utilities. |
| Daemon/API | Client-server architecture with a long-running daemon and REST API. | LOSS: No daemon, no API. Just a command-line executable. | No daemon. Interacts with the systemd manager. |
| OCI Compliance | Fully OCI compliant (uses runc internally). | Directly implements the OCI Runtime Specification. | LOSS: Not OCI-compliant. Cannot directly run OCI images without manual extraction to a rootfs. |