module Docker::Api::Containers
Overview
API queries for container interaction.
Direct including types
Defined in:
docker/api/containers.crInstance Method Summary
-
#containers(all : Bool | Nil = nil, limit : Int | Nil = nil, size : Bool | Nil = nil, filters : Hash | Nil = nil)
List containers.
-
#create_container(name : String | Nil = nil, **props)
Creates a container.
-
#inspect_container(id : String)
Query container info.
-
#kill(id : String, signal : String | Nil = nil)
Send a POSIX signal to a container, defaulting to killing to the container.
-
#pause(id : String)
Pauses all processes within a container.
-
#remove_container(id : String, v : Bool | Nil = nil, force : Bool | Nil = nil, link : Bool | Nil = nil)
Remove a container.
-
#rename(id : String, name : String)
Rename a container.
-
#restart(id : String, timeout : Int | Nil = nil)
Restart a container.
-
#start(id : String)
Start a container.
-
#stop(id : String, timeout : Int | Nil = nil)
Stops a container.
-
#unpause(id : String)
Resume a container which has been paused.
-
#update(id : String, **props)
Change various configuration options of a container without having to recreate it.
-
#wait(id : String, condition : String | Nil = nil)
Block until a container stops, then returns the exit code.
Instance Method Detail
List containers.
Similar to the docker ps command.
Creates a container.
Parameters are similar to those for the docker run command.
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 a container.
Similar to the docker rm command.
Restart a container.
Similar to the docker restart command.
Start a container.
Similar to the docker start command, but doesn’t support attach options.
Stops a container.
Similar to the docker stop command.
Resume a container which has been paused.
Similar to docker unpause command.
Change various configuration options of a container without having to recreate it.
Similar to docker update command.
Block until a container stops, then returns the exit code.
Similar to docker wait command.