Skip to main content

Crate rightsize_docker

Crate rightsize_docker 

Source
Expand description

rightsize-docker is a from-scratch Docker daemon client over tokio::net::UnixStream — no bollard, no hyper, no shared HTTP stack the consumer’s dependency tree can accidentally reroute onto TCP. It speaks exactly the daemon endpoints rightsize needs (containers, exec, logs, networks) and decodes the daemon’s chunked transfer encoding and 8-byte log-frame multiplexing format by hand.

This backend also doubles as the correctness oracle other backends are checked against, since Docker enforces the semantics (read-only mounts, native networks) that microsandbox only emulates.

Structs§

DockerBackend
Drives the Docker daemon over DockerClient. See the module docs for the shape.
DockerBackendProvider
The Docker backend’s BackendProvider. Priority 10 — lower than msb’s 20, so a microVM-capable host prefers the microVM by default; Docker is the fallback for hosts without one (Intel Macs, Windows, no /dev/kvm), and doubles as the contract suite’s correctness oracle.