Docker and HTTP send

RodtmcleanRodtmclean Member Posts: 82

I've set up docker with a type sandbox and I have to test some HTTP sends to an external URL (it is a government test URL for submitting tax details). However, every time I try a HTTP send I'm getting an error code 0. Is there additional setup for docker to handshake with the outside world? I am running BC22 :)

HTTPClient.Send(HTTPRequestMessage, HTTPResponseMessage) - always returns error code 0.

Regards and Thanks


  • dreezdreez Member Posts: 62

    try to go to C:/ProgramData/docker/config/daemon.json and add the property
    "dns": [""]
    to the json, the "" is google's dns.

    Then restart docker service, you can do that with powershell command.
    Restart-Service docker

    It migth helps.
Sign In or Register to comment.