class
Docr::Containers
- Docr::Containers
- Reference
- Object
Defined in:
docr/containers.crConstructors
Instance Method Summary
-
#create(name : String, config : ContainerConfig) : CreateContainerResponse
Create a new container with the given name and configuration.
-
#delete(id : String, force : Bool = false)
Remove a container.
-
#kill(id : String, signal : String = "SIGKILL")
Send a signal to a container.
-
#list(filters : Hash(String, Array(String)) | Nil = nil) : Array(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.
-
#start(id : String)
Start a created container.
-
#wait(id : String) : WaitResponse
Block until a container stops, then return the exit code.
Constructor Detail
Instance Method Detail
Create a new container with the given name and configuration.
List containers, optionally filtered.
def 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).