Problem setting up on EC2, due to conection issue

I can’t see how the hostname of the server could impact accessing an FQDN inside a container. That’s really peculiar.