Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type NetworkId = Text
- data Network
- networkId :: Network -> NetworkId
- fromExistingNetwork :: NetworkId -> TestContainer Network
- createNetwork :: NetworkRequest -> TestContainer Network
- data NetworkRequest
- networkRequest :: NetworkRequest
- withDriver :: Text -> NetworkRequest -> NetworkRequest
- withIpv6 :: NetworkRequest -> NetworkRequest
- withoutReaper :: WithoutReaper request => request -> request
Network
type NetworkId = Text Source #
Identifies a network within the Docker runtime. Assigned by docker network create
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
createNetwork :: NetworkRequest -> TestContainer Network Source #
Creates a new Network
from a NetworkRequest
.
Since: 0.5.0.0
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