Docker Private Registry: ping attempt failed

Thanks, this was already a great help. The permission error is gone.
Can I really choose the name my.registry.common.name or do I have to use the name of my EC2 instance:
ec2-xx-xx-xx-xx.us-xxx-1.compute.amazonaws.com

Because now I’m getting:
unable to ping registry endpoint https://ec2-xx-xx-xx-xx.us-xxx-1.compute.amazonaws.com:5000/v0/
v2 ping attempt failed with error: Get https://ec2-xx-xx-xx-xx.us-xxx-1.compute.amazonaws.com:5000/v2/: net/http: TLS handshake timeout
v1 ping attempt failed with error: Get https://ec2-xx-xx-xx-xx.us-xxx-1.compute.amazonaws.com:5000/v1/_ping: net/http: TLS handshake timeout