module Companion::Docker::Client

Direct including types

Defined in:

docker/client/client.cr
docker/client/exceptions.cr
docker/client/port.cr

Instance Method Summary

Instance Method Detail

abstract def create_container(options : CreateContainerOptions, name : String) : CreateContainerResponse #

[View source]
abstract def create_network(options : CreateNetworkOptions) : CreateNetworkResponse #

Creates a network.


[View source]
abstract def get_container_id(name : String) : String | Nil #

Get a container's id.

Returns nil if the container is not found.


[View source]
abstract def get_logs(id : String, stdout : Bool, stderr : Bool, lines : Int32) : String #

Get a container's logs


[View source]
abstract def images : Array(Image) #

Get images.


[View source]
abstract def pull_image(name, &block : CreateImageResponse -> ) #

Pull an image from Docker Hub.

Yield CreateImageResponse objects.


[View source]
abstract def start_container(id : String) : Nil #

Start a container.


[View source]