Share and learn in the Docker community.
Check your firewall. UFW for example:
But it can be firewalld or anything. It depends on the Linux distribution.