testcontainers-0.5.1.0: Docker containers for your integration tests.
Safe HaskellSafe-Inferred
LanguageHaskell2010

TestContainers.Docker.Network

Synopsis

Network

type NetworkId = Text Source #

Identifies a network within the Docker runtime. Assigned by docker network create

Since: 0.5.0.0

data Network Source #

Handle to a Docker network.

Since: 0.5.0.0

networkId :: Network -> NetworkId Source #

Returns the id of the network.

Since: 0.5.0.0

Creating networks

fromExistingNetwork :: NetworkId -> TestContainer Network Source #

Creates a Network from an existing NetworkId. Note that the Network is not managed by the TestContainer monad and as such is not being cleaned up afterwards.

Since: 0.5.1.0

data NetworkRequest Source #

Parameters for creating a new Docker network.

Since: 0.5.0.0

Instances

Instances details
WithoutReaper NetworkRequest Source # 
Instance details

Defined in TestContainers.Docker.Network

networkRequest :: NetworkRequest Source #

Default parameters for creating a new Docker network.

Since: 0.5.0.0

withDriver :: Text -> NetworkRequest -> NetworkRequest Source #

Driver to manage the Network (default "bridge").

Since: 0.5.0.0

withIpv6 :: NetworkRequest -> NetworkRequest Source #

Enable IPv6 for the Docker network.

Since: 0.5.0.0

withoutReaper :: WithoutReaper request => request -> request Source #

Do not register the docker resource (container, register, etc.) with the resource reaper. Careful, doing this will make your container leak on shutdown if not explicitly stopped.

Since: 0.5.1.0