Unable to communicate between docker host and container

Anonymous
2020-08-14T15:10:47.743+00:00

Hi everyone, I recently installed docker on a machine running on Windows Server 2016 by following this guide: https://learn.microsoft.com/en-us/virtualization/windowscontainers/quick-start/set-up-environment?tabs=Windows-Server After successfully installing docker, I proceeded with the next guide to run my first container: https://learn.microsoft.com/en-us/virtualization/windowscontainers/quick-start/run-your-first-container Every step in this guide also worked, with the exception that I used this image "mcr.microsoft.com/windows/servercore:1607" instead of the nanoserver suggested, because my machine runs on the version 1607 - OS build 14393.3808, and seems like I needed an image supported my OS version. Anyway, I'm able to pull images, run the container and work with it. The problem arises with networking, because it seems like my server (which is also the host for docker) can't reach the container's address. I was told that if everything works properly, I should be able to: - ping container's Default Gateway from the host (works) - ping container's IP Address from the host (doesn't work) - ping host's IP Address from inside the container (works) - ping container's Default Gateway from inside the container (doesn't work) The screenshots below will show you the results mentioned above. Commands run inside the container: ![17761-windowsticket2.png][1] Commands run from the host (scw000100860): ![17704-windowsticket3.png][2] I have already set the NetIPInterface so that the interface that accesses internet has the lowest InterfaceMetric value. ![17705-windowsticket1.png][3] These were the things I was told from the software provider that my company needs to install. The software runs multiple containers but seems like they're not reachable so the tool obviously won't work, but they told me the issue is on docker side, since I'm not able to ping any container's IP Address from the host. Please let me know what I can do to fix this issue or if I can provide more information to you. Thanks a lot in advance. Nicolò [1]: /api/attachments/17761-windowsticket2.png?platform=QnA [2]: /api/attachments/17704-windowsticket3.png?platform=QnA [3]: /api/attachments/17705-windowsticket1.png?platform=QnA

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,416 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,426 questions
Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,598 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xiaowei He 9,876 Reputation points
    2020-08-17T09:00:12.173+00:00

    Hi,

    I am doing research and trying to test in my lab, it will take some time to do research, if I get any update, I will update as soon as possible. Thanks for your patience.

    Best Regards,
    Anne