Docker.Config (docker v0.4.0)
Link to this section Summary
Functions
Given a %Docker.Config{} struct, formats and returns a dictionary of the appropiate options for creating a container.
Takes a port string, either a single port or : deliminated pair, and turns it into a two-element tuple.
Given a %Docker.Config{} struct, formats and returns a dictionary of the appropriate options for starting a container.
Link to this section Functions
Link to this function
create_container(conf)
Given a %Docker.Config{} struct, formats and returns a dictionary of the appropiate options for creating a container.
Link to this function
format_environment(env)
Link to this function
format_host_config(host_config)
Link to this function
format_ports(ports)
Link to this function
format_volumes(volumes)
Link to this function
port_to_tuple(port)
Takes a port string, either a single port or : deliminated pair, and turns it into a two-element tuple.
Link to this function
start_container(conf)
Given a %Docker.Config{} struct, formats and returns a dictionary of the appropriate options for starting a container.