In my environment security team has IP forwarding disabled on my RHEL servers. When I run docker run, I get the message “WARNING: IPv4 forwarding is disabled. Networking will not work.”. So when run I docker run with -p options, I can’t reach the applications server port in the container. But if I run with the --network=host, I can reach the application on it’s default port (8443). But then I won’t be able to start up multiple containers. Is there any other alternatives for me without enabling ip forwarding on the physical host?
With this, I can reach the application(https://hostname/)
docker run -d -v /tmp:/tmp --env ZONE=RAVI_ZONE --name dev_moog --hostname dev_moog moog.7.2.0.4
If I run this, I can’t reach the application (https://hostname:13443/)
docker run -d -v /tmp:/tmp -p 7306:3306 -p 13443:8443 --env ZONE=RAVI_ZONE --name dev_moog --hostname dev_moog moog.7.2.0.4
WARNING: IPv4 forwarding is disabled. Networking will not work.
b80c3e8d9532dfd6cbf516b4a7e703002d6facd306dc6f61e27da4ddb4dfe89c