The node process probably needs to know its public IP address for p2p to work properly (usually the address is gossiped around the p2p network).
When running in a container the typical auto-discovery method for figuring out the host's public IP doesn't work.
Again usually it needs to be discovered on the host and passed to the container via config.
Investigate and if necessary resolve this.