Unable to connect es in docker

My es is deployed in docker ,cannot be connected using TransportClient。
debug:After accessing the es cluster through an external network port, the internal network is used, so the connection cannot be made。

Did you add discovery.type: single-node?