RemoteDockers v1.3.3 RemoteDockers.Container View Source
Connector to manage containers
Link to this section Summary
Functions
Create a container from the specified container’s image configuration, or a simple image name
Get status of a container
List running containers
List all containers
Remove a container
Start a container
Stop a container
Link to this section Functions
Link to this function
create!(node_config, name, container_config)
View Source
create!( RemoteDockers.NodeConfig.t(), bitstring(), RemoteDockers.ContainerConfig.t() ) :: RemoteDockers.Container
create!(RemoteDockers.NodeConfig.t(), bitstring(), bitstring()) :: RemoteDockers.Container
Create a container from the specified container’s image configuration, or a simple image name.
Examples:
container_config =
ContainerConfig.new("MyImage")
|> ContainerConfig.add_env("MY_ENV_VAR", "my_env_var_value")
Container.create!(NodeConfig.new(), "my_container", container_config)
Container.create!(NodeConfig.new(), "my_container", "MyImage")
Link to this function
get_status!(container)
View Source
get_status!(RemoteDockers.Container) :: bitstring()
Get status of a container
Link to this function
list!(node_config)
View Source
list!(RemoteDockers.NodeConfig.t()) :: [RemoteDockers.Container]
List running containers
Link to this function
list_all!(node_config)
View Source
list_all!(RemoteDockers.NodeConfig.t()) :: [RemoteDockers.Container]
List all containers
Remove a container
Link to this function
start!(container)
View Source
start!(RemoteDockers.Container) :: RemoteDockers.Container
Start a container
Link to this function
stop!(container)
View Source
stop!(RemoteDockers.Container) :: RemoteDockers.Container
Stop a container