Open martin-sucha opened 1 year ago
I have also encounter this issue when using podman and can confirm your fix (#947) has resolves the bug. Any chance we could get this merged into main soon?
Any chance we could get this merged into main soon?
I'm waiting for author's feedback on https://github.com/testcontainers/testcontainers-go/pull/947#issuecomment-1480781193. But I'll take the PR and try to resolve the conflicts by myself.
Reopening for #1164
This is likely fixed by the logging changes in https://github.com/testcontainers/testcontainers-go/pull/2664
@martin-sucha could you please take a look with the latest release, v0.33.0
?
Thanks in advance! 🙏
Testcontainers version
v0.19.0
Using the latest Testcontainers version?
Yes
Host OS
Linux
Host arch
x86_64
Go version
go1.20
Docker version
What happened?
The worker goroutine in DockerContainer.StartLogProducer panics:
This is because:
since
parameter is current timepodman
does not return HTTP response headers until some log output is availableSo the context deadline expires and the code panics.
It seems that instead of a hardcoded 5 second timeout, the context should be cancelled when the producer is stopped.
Unless this is a bug in podman, in that case we can open a bug report there.
Relevant log output
No response
Additional information
No response