New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testcontainers not able to read container logs when using with podman #15497
Comments
Any details on the HTTP API requests that Testcontainers is making? Running |
If I run
If I run
I posted same issue to Testcontainers team and they replied with below answer
|
Please find logs which gives api calls information
|
I was able to resolve the issue after watching the youtube video . After setting events-backend to k8s-file in /usr/share/containers/container.conf file in virtual machine my tests are running fine. If you are using Podman version 4.2, no need to change cgroup-manager option |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I am trying to use Podman (version 4.2) instead of Docker to run the tests with Testcontainers.
I am trying to start the RabbitMQ containers with following code
Describe the results you received:
Testcontainer is recognizing the Podman as docker environment but failing to recognize the container strartup based on the log messages.
org.testcontainers.containers.ContainerLaunchException: Timed out waiting for log output matching '.*Server startup complete.*'
.testcontainer.properties
docker.client.strategy=org.testcontainers.dockerclient.NpipeSocketClientProviderStrategy
DOCKER_HOST = npipe:////./pipe/podman-machine-default
It seems testcontainers is unable to read the logs from the container with docker compatible API
Describe the results you expected:
I am expecting testcontainers should be able to read container logs to identify the successful startup of container.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: