You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now when I try to run my testcontainers, seems that using host network makes port mapping not to work. The reason for happing port mapping is that I can run tests parallel with same type of container running different instances on different ports. Like for example my database container.
I tried updating the containers.conf with netns=private, but then I get the error when I try to run my database image as follows
time="2024-05-24T10:13:34Z" level=debug msg="ExitCode msg: \"pasta failed with exit code 1:\\n\""
Error: pasta failed with exit code 1:
I'm running this Podman image I created on docker desktop which runs on MacOS.
Is there a way to get port mapping to work in this Podman in Podman setup ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have use this guide to create a image which contains Podman https://www.redhat.com/sysadmin/podman-inside-container
Now when I try to run my testcontainers, seems that using host network makes port mapping not to work. The reason for happing port mapping is that I can run tests parallel with same type of container running different instances on different ports. Like for example my database container.
I tried updating the containers.conf with
netns=private
, but then I get the error when I try to run my database image as followsI'm running this Podman image I created on docker desktop which runs on MacOS.
Is there a way to get port mapping to work in this Podman in Podman setup ?
Beta Was this translation helpful? Give feedback.
All reactions