I am running an IntegrationTest using TestContainers version 1.21.3 on a rootless podman setup.
On Startup a GenericContainer is running an assertion that asserts that the ports exposed post container startup match the container definition. This assertions depends on running a container inspect command which in case of podman is podman inspect. The problem is that when I start a rootless podman , podman chooses the host networking mode on its own and in that mode when you run podman inspect the NetworkSettings are empty. This always fails the assertion being made the "testcontainers" library (GenericContainer : Line 457).
Is this a bug ? How do I get around this issue ?
Podman Inspect output looks like this :
[
{
"Id" : xxxx
.....
"NetworkSettings": {
......
"Ports": {},
"Networks": {
"host": {
.. all field values null ...
}
}
}
]
Podman version : 5.4.0 TestContainers version : 1.21.3