Docr::Containers
Inherits Reference / Object
Constructors
new(client : Client)
SourceInstance methods
create(name : String, config : Types::ContainerConfig) : Types::CreateContainerResponse
Create a new container with the given name and configuration.
list(filters : Hash(String, Array(String)) | Nil = nil) : Array(Types::ContainerSummary)
List containers, optionally filtered.
logs(id : String, output : IO, follow : Bool = false, stdout : Bool = true, stderr : Bool = true)
Stream container logs, writing decoded output to the given IO. Handles the Docker multiplexed stream format (8-byte header per frame).
wait(id : String) : Types::WaitResponse
Block until a container stops, then return the exit code.