I am running docker container in RedHat 8. In my docker container, I exposed port 8080 for accessible from outside. I can able to telnet 8080 from other servers but I cannot able to telnet 8080 from host server by IP address.
[root@redhat1 biz]# cat docker-compose.yml
version: '3'
services:
web:
image: nginx:latest
ports:
- "8080:80"
links:
- php
php:
image: php:7-fpm
Exposed port 8080 cannot accessible from the host server by using IP address. It can able to telnet 8080 by localhost or 127.0.0.1.
Telnet 8080 from other server by IP address is OK.