Testcontainers for Go is a Go package that makes it simple to create and clean up container-based dependencies for automated integration/smoke tests. The clean, easy-to-use API enables developers to programmatically define containers that should be run as part of a test and clean up those resources when the test is done.
Restarting a container with a log consumer results in a error after the second start command.
In the following example, I restart a simple hello world container with a custom log consumer.
I expected that the log consumer wont cause an error.
Testcontainers version
0.31.0
Using the latest Testcontainers version?
Yes
Host OS
Linux Ubuntu 22.04
Host arch
x86
Go version
1.22
Docker version
Docker info
What happened?
Restarting a container with a log consumer results in a error after the second start command. In the following example, I restart a simple hello world container with a custom log consumer. I expected that the log consumer wont cause an error.
Relevant log output