Documentation
¶
Overview ¶
Package registryrelay implements the Registry relay (ADR 0043). On a VM runtime the runtime's daemon pushes and pulls images from inside its VM, where the host's loopback addresses don't reach: it is a VM-side client. The Registry relay is a Managed container in the VM's host network namespace that listens on 127.0.0.1 at the registry's port and pipes each connection to the registry's address on the services network, which the VM relay serves. VM-side clients then use the same image references as Host clients.
Index ¶
Constants ¶
const Suffix = "registryrelay"
Suffix names the container (runtime.Manager.Name).
Variables ¶
var ErrPortTaken = errors.New("the port is taken inside the runtime's VM")
ErrPortTaken is returned by Start when something in the VM already listens on 127.0.0.1 at the port.
Functions ¶
func Leftovers ¶
Leftovers returns the Registry relays of the Instance whose data dir is dir (absolute), as its labels name it, or of every Instance when dir is "": one a previous run left behind holds the registry's port on the host on OrbStack and Colima.