GenericContainer does not start up with podman in host networking mode
#11226
kirankolli82
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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 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 :
Podman version : 5.4.0
Beta Was this translation helpful? Give feedback.
All reactions