Excontainers.Container (excontainers v0.3.1) View Source

GenServer to interact with a docker container.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Returns the configuration used to build the container.

Returns the ID of the container on Docker.

Returns the port on the host machine that is mapped to the given port inside the container.

Starts a container and blocks until container is ready.

Stops the Container GenServer. When terminated in a non-brutal way, it also stops the container on Docker.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Returns the configuration used to build the container.

Returns the ID of the container on Docker.

Returns the port on the host machine that is mapped to the given port inside the container.

Link to this function

start_link(config, options \\ [])

View Source

Starts a container and blocks until container is ready.

Link to this function

stop(server, reason \\ :normal, timeout \\ :infinity)

View Source

Stops the Container GenServer. When terminated in a non-brutal way, it also stops the container on Docker.