testcontainers / testcontainers-hs

Docker containers for your integration tests! http://hackage.haskell.org/package/testcontainers
MIT License
56 stars 12 forks source link

Ryuk is inaccessible when tests are run inside a network #42

Open michivi opened 1 year ago

michivi commented 1 year ago

The Ryuk container is inaccessible by testcontainers-hs when it is run inside a Docker container, itself running in a network different from the default one.

The tested scenario is:

This scenario can be encountered when running tests on GitHub Actions within a container.

In such a scenario, the following message is printed:

       uncaught exception: DockerException
       InspectOutputMissingNetwork {id = "cb9daeaca3[...]37bd2490"}

Whenever testcontainers-hs is run inside a container in a network different from the default one, then Ryuk cannot be accessed directly. It needs to access Ryuk using the mapped port on the host.