Testcontainers::Network
Network provides a wrapper around Docker networks for multi-container test scenarios.
Example:
network = Testcontainers::Network.new(name: "my-test-network")
network.create!
container.with_network_mode(network.name).start
network.remove
Constants
DEFAULT_DRIVER = "bridge"
Constructors
Class methods
Creates the network, yields it, then removes it.
Instance methods
driver
Sourcelabels
Sourcename
Sourcenetwork_id
Source