I don’t know which version of Docker for Windows you are using. In the Beta version before last month, in Settings > Network, there was an option to choose whether to map the virtual machine port to the Windows system port. You need to check it. The other thing is to check whether the permissions of Docker for Windows are restricted. It is recommended to use administrator mode to open Docker for Windows.
First of all, I don’t know if your configuration is correct, but I feel like the concepts are confused?
Ping is to test whether the IP or domain name is accessible?
Telnet is used to test whether the port is open?
I don’t know which version of Docker for Windows you are using. In the Beta version before last month, in Settings > Network, there was an option to choose whether to map the virtual machine port to the Windows system port. You need to check it.
The other thing is to check whether the permissions of Docker for Windows are restricted. It is recommended to use administrator mode to open Docker for Windows.
Turn off the firewall, try it