Docker Community Forums

Share and learn in the Docker community.

Unable to call API from Windows docker container (/windows/servercore)

Unable to call API from Windows docker container.
(Windows ServerCore 2016)
Docker version 19.03.5, build 2ee0c57608
NAT driver already installed by default.

PS C:\windows\system32> docker network ls
NETWORK ID NAME DRIVER SCOPE
e33b5c77498f nat nat local
9d27b05ff003 none null local

Image used on Windows OS => docker pull mcr.microsoft.com/windows/servercore
Installed few applications and dependencies and created an image.

Calling API from inside container. Container coming up with an error.
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.