class

Companion::Docker::Client::Local

Inherits Companion::Docker::Client < Reference < Object

Constructors

Instance methods

connect_network(options : ConnectNetworkOptions) : Nil

Connect a container to a network

Source
containers(all = false) : Array(Container)

Lists containers.

By default list only running ones. Set all to true to get all containers.

Source
create_container(options : CreateContainerOptions, name : String | Nil = nil) : CreateContainerResponse

Creates a new container and return its id.

Source
create_image(from_image : String, tag : String, &)

Create an image and returns its id

Source
create_network(options : CreateNetworkOptions) : CreateNetworkResponse

Creates a network.

Source
get_container_id(name : String) : String | Nil

Get a container's id.

Returns nil if the container is not found.

Source
get_logs(id : String, stdout : Bool, stderr : Bool, lines : Int32) : String

Get a container's logs

Source
images

Get images.

Source
networks
Source
pull_image(name, tag = "latest", &block : CreateImageResponse -> )

Pulls an image from dockerhub

Source
remove_container(id : String) : Nil

Removes a containers.

If the container is running, it will be killed.

Source
start_container(id : String) : Nil

Starts a container.

Source

Nested types