Skip to main content

Module containers_handler

Module containers_handler 

Source
Expand description

GET /api/v1/containers: this machine’s agent containers and the container runtime’s state, as names and states only (backend::container_status). What is there now: a removed container is only ever an event. Read-only, and it reaches nothing inside a container.

The runtime is looked at live, as containerruntimeavailable does, so a reader finds a runtime that started after srv did and wakes the watcher. Where there is no container runtime this answers 200 with an empty list and runtime.available: false, never an error.

Functions§

handle_containers