module Companion::Docker::Client
Direct including types
Defined in:
docker/client/client.crdocker/client/exceptions.cr
docker/client/port.cr
Instance Method Summary
- #create_container(options : CreateContainerOptions, name : String) : CreateContainerResponse
-
#create_network(options : CreateNetworkOptions) : CreateNetworkResponse
Creates a network.
-
#get_container_id(name : String) : String | Nil
Get a container's id.
-
#get_logs(id : String, stdout : Bool, stderr : Bool, lines : Int32) : String
Get a container's logs
-
#images : Array(Image)
Get images.
-
#pull_image(name, &block : CreateImageResponse -> )
Pull an image from Docker Hub.
-
#start_container(id : String) : Nil
Start a container.
Instance Method Detail
abstract
def create_container(options : CreateContainerOptions, name : String) : CreateContainerResponse
#
Creates a network.
abstract
def get_container_id(name : String) : String | Nil
#
Get a container's id.
Returns nil if the container is not found.
abstract
def get_logs(id : String, stdout : Bool, stderr : Bool, lines : Int32) : String
#
Get a container's logs
abstract
def pull_image(name, &block : CreateImageResponse -> )
#
Pull an image from Docker Hub.
Yield CreateImageResponse
objects.