Forward Traffic Is Not Working On Docker Container When Accessing it From Outside The Docker Host Server, Connection Is Refused
Last updated on NOVEMBER 10, 2017
Applies to:Linux OS - Version Oracle Linux 6.7 with Unbreakable Enterprise Kernel [4.1.12] and later
When trying to access a application running on the a Docker container (NGINX in this case) from an external Server using the forwarded port 8080 on the Docker server and port 80 on the container, the connection is not established as expected while the FIREWALLD service is running.
This is the error:
If the FIREWALLD service is stopped as a workaround, the connection can be established properly without any issue.
This behaviour indicates a rule that is blocking/dropping the forwarded traffic to the container and because of this the connection is not successful.
No changes were made, fresh installation was done and event though the issue is seen.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms