Docker and HTTP send

RodtmcleanRodtmclean Member Posts: 87
Hi,

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
Roddy

Answers

  • dreezdreez Member Posts: 72
    Hey,

    try to go to C:/ProgramData/docker/config/daemon.json and add the property
    "dns": ["8.8.8.8"]
    
    to the json, the "8.8.8.8" 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.