Docker::Api::Containers
API queries for container interaction.
Instance methods
containers(all : Bool | Nil = nil, limit : Int | Nil = nil, size : Bool | Nil = nil, filters : Hash | Nil = nil)
List containers.
Similar to the docker ps command.
Creates a container.
Parameters are similar to those for the docker run command.
inspect_container(id : String)
Query container info.
Identical to the docker inspect command, but only for containers.
Send a POSIX signal to a container, defaulting to killing to the container.
Similar to the docker kill command.
remove_container(id : String, v : Bool | Nil = nil, force : Bool | Nil = nil, link : Bool | Nil = nil)
Remove a container.
Similar to the docker rm command.
Restart a container.
Similar to the docker restart command.
start(id : String)
Start a container.
Similar to the docker start command, but doesn’t support attach options.
Stops a container.
Similar to the docker stop command.
unpause(id : String)
Resume a container which has been paused.
Similar to docker unpause command.