I’ve just created a windows container using Docker Desktop v2.1.0.4 on a nat network. It is successfully assigning an IP address. The command I used was:
docker run --name my_container --hostname my_hostname -t -d image_path
The problem I’m running into though is once the container is created and started, I can’t ping it using the hostname, but I can ping it using its ip address. Is there some sort of DNS config I need to do? To be clear, I’m trying to ping from the host to the container, not from the container to an outside address.