dotnet restore fails in docker on 1 wifi, ok others











up vote
0
down vote

favorite












I have a local build of my dotnet core app that runs in the microsoft/dotnet:2.1-sdk image. The dotnet restore part of this works perfectly fine on most connections but there is 1 wifi connection where I work and I get errors like:



Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/system.numerics.vectors/index.json'.
The SSL connection could not be established, see inner exception.
Authentication failed because the remote party has closed the transport stream.


If I try using curl to get the json file by manually running the image, it works ok:



PS C:DevsrcDeployment> docker run -it 6baac bash
root@99660525f031:/# curl https://api.nuget.org/v3-
flatcontainer/system.buffers/index.json --ssl
{
"versions": [
"4.0.0-rc2-24027",
"4.0.0",
...


I tried to 'forget' the connection and re-establish it. Ive tried re-installing Docker. Ive tried standing on my head. Nothing seems to work - unless I move to another location and use an different wifi connection (or my docking station which I left in another country).



Does this make any sense to anyone??










share|improve this question


























    up vote
    0
    down vote

    favorite












    I have a local build of my dotnet core app that runs in the microsoft/dotnet:2.1-sdk image. The dotnet restore part of this works perfectly fine on most connections but there is 1 wifi connection where I work and I get errors like:



    Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/system.numerics.vectors/index.json'.
    The SSL connection could not be established, see inner exception.
    Authentication failed because the remote party has closed the transport stream.


    If I try using curl to get the json file by manually running the image, it works ok:



    PS C:DevsrcDeployment> docker run -it 6baac bash
    root@99660525f031:/# curl https://api.nuget.org/v3-
    flatcontainer/system.buffers/index.json --ssl
    {
    "versions": [
    "4.0.0-rc2-24027",
    "4.0.0",
    ...


    I tried to 'forget' the connection and re-establish it. Ive tried re-installing Docker. Ive tried standing on my head. Nothing seems to work - unless I move to another location and use an different wifi connection (or my docking station which I left in another country).



    Does this make any sense to anyone??










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have a local build of my dotnet core app that runs in the microsoft/dotnet:2.1-sdk image. The dotnet restore part of this works perfectly fine on most connections but there is 1 wifi connection where I work and I get errors like:



      Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/system.numerics.vectors/index.json'.
      The SSL connection could not be established, see inner exception.
      Authentication failed because the remote party has closed the transport stream.


      If I try using curl to get the json file by manually running the image, it works ok:



      PS C:DevsrcDeployment> docker run -it 6baac bash
      root@99660525f031:/# curl https://api.nuget.org/v3-
      flatcontainer/system.buffers/index.json --ssl
      {
      "versions": [
      "4.0.0-rc2-24027",
      "4.0.0",
      ...


      I tried to 'forget' the connection and re-establish it. Ive tried re-installing Docker. Ive tried standing on my head. Nothing seems to work - unless I move to another location and use an different wifi connection (or my docking station which I left in another country).



      Does this make any sense to anyone??










      share|improve this question













      I have a local build of my dotnet core app that runs in the microsoft/dotnet:2.1-sdk image. The dotnet restore part of this works perfectly fine on most connections but there is 1 wifi connection where I work and I get errors like:



      Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/system.numerics.vectors/index.json'.
      The SSL connection could not be established, see inner exception.
      Authentication failed because the remote party has closed the transport stream.


      If I try using curl to get the json file by manually running the image, it works ok:



      PS C:DevsrcDeployment> docker run -it 6baac bash
      root@99660525f031:/# curl https://api.nuget.org/v3-
      flatcontainer/system.buffers/index.json --ssl
      {
      "versions": [
      "4.0.0-rc2-24027",
      "4.0.0",
      ...


      I tried to 'forget' the connection and re-establish it. Ive tried re-installing Docker. Ive tried standing on my head. Nothing seems to work - unless I move to another location and use an different wifi connection (or my docking station which I left in another country).



      Does this make any sense to anyone??







      docker .net-core nuget wificonfiguration






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 16 hours ago









      Jonesie

      2,45953051




      2,45953051





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53203266%2fdotnet-restore-fails-in-docker-on-1-wifi-ok-others%23new-answer', 'question_page');
          }
          );

          Post as a guest





































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53203266%2fdotnet-restore-fails-in-docker-on-1-wifi-ok-others%23new-answer', 'question_page');
          }
          );

          Post as a guest




















































































          Popular posts from this blog

          Schultheiß

          Verwaltungsgliederung Dänemarks

          Liste der Kulturdenkmale in Wilsdruff