Publishing ports to host via port-mapping within QM does not work #714
Labels
bug
Something isn't working
centos-sig-automotive
Issues related to containers running in centos-sig-automotive
If you have to run multiple applications all listening on the same port within QM that expose a service to another host an intuitive approach to this would be using port mapping (8080:80, 8081:80) to resolve any conflicts and then publishing those ports:
Example: Port mapping does not work
Within QM
/etc/containers/systemd/nginx-1.container
:Within QM
/etc/containers/systemd/nginx-2.container
:On the host
/etc/containers/systemd/qm.container.d/publish-port.conf
:But this does not work even though the QM container publishes those ports.
Instead one has to use host networking which disables port-mapping and therefore only one application can be started as they both would try to bind the same port:
Example: Only one application starts
Within QM
/etc/containers/systemd/nginx-1.container
:Within QM
/etc/containers/systemd/nginx-2.container
:On the host
/etc/containers/systemd/qm.container.d/publish-port.conf
:One application does not start:
The text was updated successfully, but these errors were encountered: