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.
2023/08/21 17:57:27 🐳 Creating container for image livepeer/record-tester
box_record_test.go:135:
Error Trace: /home/iameli/code/catalyst/test/e2e/box_record_test.go:135
/home/iameli/code/catalyst/test/e2e/box_record_test.go:35
Error: Received unexpected error:
Error response from daemon: container create: invalid config provided: networks and static ip/mac address can only be used with Bridge mode networking: failed to create container
Test: TestBoxRecording
Relevant log output
No response
Additional information
I'm not 100% sure this is the right way to use host networking. The docs provide you with a means of skipping Docker for Desktop tests if you need to use host networking, but don't actually explain how to actually do it. Happy to send a PR updating if I'm doing it wrong!
Also for the record using --network=host from the command line works just fine.
Testcontainers version
0.23.0
Using the latest Testcontainers version?
Yes
Host OS
Ubuntu 22.04
Host arch
amd64
Go version
1.20.5
Docker version
Docker info
What happened?
I ran this:
Relevant log output
No response
Additional information
I'm not 100% sure this is the right way to use host networking. The docs provide you with a means of skipping Docker for Desktop tests if you need to use host networking, but don't actually explain how to actually do it. Happy to send a PR updating if I'm doing it wrong!
Also for the record using
--network=host
from the command line works just fine.