Installing ERPNext via Docker

I have installed ERPNEXT via docker and it shows installed as container on docker but when i try to connect with Ip of my domain i.e https://localhost/ it does not work what is the reason also checked with curl command it gives connection to port 80 but i am not able to access it

have you created the first site?

to access localhost create site called localhost.

or create site like site1.localhost and access it as http://site1.localhost