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
Port forwarding not working when docker is active #532
Comments
Can you share the output of |
Thank you for following up on this! After a couple more restarts and changes, I do not seem to be able to reproduce it any longer. Closing the issue, my apologies to have disturbed you with this. |
It looks like the issue is back now:
The nat option does not seem to work:
|
sorry the correct command is |
I try to use podman and docker side by side, progressively migrate to podman. |
can we close this or shall we leave it open? im not seeing any conclusion here. |
I switched completely to podman in the meantime, which resolves the issue for me. |
The issue seems to be caused by the firewall configuration applied by Docker. But sadly The following rule fixes it for me: iptables -A NETAVARK_FORWARD -m conntrack --ctstate DNAT -j ACCEPT The other two Removing Docker from the system fixes the issue, since the policy of the Thanks for your time! |
@bverhagen: I guess, this issue (the missing forward rule) is still open? |
@sumpfralle : thanks for your consideration and for providing the real solution! As mentioned, I pushed through and converted everything to podman right away. I hope it will help others though that do not have this luxury! |
Hi,
I am not sure this is the right place to ask nor do I know whether this is unexpected for you, but I would like to get your point of view on the following problem I encountered:
I am in the middle of moving Docker container workloads to podman 4.3.1 using netavark as network backend. Some containers are still running in docker, while another one, a postgresql database that for dubious reasons exposes its database to the host port and to another container on its own network, has been moved to podman. When Docker is not running, assigning the database container to the network, while publishing port 5432 on the host using
-p 5432:5432
works exactly as expected (meaning: pointing an external postgresql client to the host works as if the database is running on the host). However, when I start Docker, the port forward on the host to the podman container stops working. Connecting directly to the database container still works. None of the containers still running in Docker publish to the host's port (not to port 5432 nor to any other one).My guess is that Docker overwrites the port forward in the firewall to the podman container. I do not know how to debug this further or fix this though. Do you have ideas/remarks/workarounds that could support this hybrid situation until all of them have been moved to podman?
The text was updated successfully, but these errors were encountered: