# `Testcontainers.EmqxContainer`
[🔗](https://github.com/testcontainers/testcontainers-elixir/blob/main/lib/container/emqx_container.ex#L1)

Provides functionality for creating and managing EMQX container configurations.

# `default_image`

Retrieves the default Docker image for the Emqx container.

# `host`

Returns the address on the _host machine_ where the Emqx container is listening.

# `mqtt_port`

Returns the port on the _host machine_ where the Emqx container is listening.

# `new`

Creates a new `EmqxContainer` struct with default configurations.

# `with_check_image`

Set the regular expression to check the image validity.

# `with_image`

Overrides the default image used for the Emqx container.

## Examples

    iex> config = EmqxContainer.new()
    iex> new_config = EmqxContainer.with_image(config, "emqx:xyz")
    iex> new_config.image
    "emqx:xyz"

# `with_ports`

# `with_reuse`

Set the reuse flag to reuse the container if it is already running.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
