Companion::Docker::Client::Local
Inherits Companion::Docker::Client < Reference < Object
Constructors
Instance methods
containers(all = false) : Array(Container)
Lists containers.
By default list only running ones. Set all to true to get all containers.
create_container(options : CreateContainerOptions, name : String | Nil = nil) : CreateContainerResponse
Creates a new container and return its id.
get_container_id(name : String) : String | Nil
Get a container's id.
Returns nil if the container is not found.
get_logs(id : String, stdout : Bool, stderr : Bool, lines : Int32) : String
Get a container's logs
networks
Sourcepull_image(name, tag = "latest", &block : CreateImageResponse -> )
Pulls an image from dockerhub
remove_container(id : String) : Nil
Removes a containers.
If the container is running, it will be killed.