Issue with setting up docker on WSL in Windows 10 Home












0















I am trying to setup docker through WSL(ubuntu) on Windows 10 Home but ran into an issue when trying to use the docker-compose up command:



$ docker-compose up
ERROR: Couldn't connect to Docker daemon at http://localhost:2375 - is it running?


I have the following configuration in my ~/.bashrc file



#Insert new Path for Docker and Alias

PATH="$HOME/bin:$HOME/.local/bin:$PATH"

PATH="$PATH:/mnt/c/Program Files/Docker Toolbox"

alias docker=docker.exe

alias docker-machine=docker-machine.exe

// Other code

export DOCKER_HOST='tcp://localhost:2375'


docker-machine seems to be running fine as the docker ps command shows a list of containers.



From my research, if I were to use Docker for Windows (which does not run on Windows Home) ; I need to turn on the “Expose daemon on tcp://localhost:2375 without TLS” option in the settings. Since I am using “Docker Toolbox + VirtualBox”, I would like to ask what would be the equivalent?



Please let me know if you require further information.










share|improve this question





























    0















    I am trying to setup docker through WSL(ubuntu) on Windows 10 Home but ran into an issue when trying to use the docker-compose up command:



    $ docker-compose up
    ERROR: Couldn't connect to Docker daemon at http://localhost:2375 - is it running?


    I have the following configuration in my ~/.bashrc file



    #Insert new Path for Docker and Alias

    PATH="$HOME/bin:$HOME/.local/bin:$PATH"

    PATH="$PATH:/mnt/c/Program Files/Docker Toolbox"

    alias docker=docker.exe

    alias docker-machine=docker-machine.exe

    // Other code

    export DOCKER_HOST='tcp://localhost:2375'


    docker-machine seems to be running fine as the docker ps command shows a list of containers.



    From my research, if I were to use Docker for Windows (which does not run on Windows Home) ; I need to turn on the “Expose daemon on tcp://localhost:2375 without TLS” option in the settings. Since I am using “Docker Toolbox + VirtualBox”, I would like to ask what would be the equivalent?



    Please let me know if you require further information.










    share|improve this question



























      0












      0








      0


      1






      I am trying to setup docker through WSL(ubuntu) on Windows 10 Home but ran into an issue when trying to use the docker-compose up command:



      $ docker-compose up
      ERROR: Couldn't connect to Docker daemon at http://localhost:2375 - is it running?


      I have the following configuration in my ~/.bashrc file



      #Insert new Path for Docker and Alias

      PATH="$HOME/bin:$HOME/.local/bin:$PATH"

      PATH="$PATH:/mnt/c/Program Files/Docker Toolbox"

      alias docker=docker.exe

      alias docker-machine=docker-machine.exe

      // Other code

      export DOCKER_HOST='tcp://localhost:2375'


      docker-machine seems to be running fine as the docker ps command shows a list of containers.



      From my research, if I were to use Docker for Windows (which does not run on Windows Home) ; I need to turn on the “Expose daemon on tcp://localhost:2375 without TLS” option in the settings. Since I am using “Docker Toolbox + VirtualBox”, I would like to ask what would be the equivalent?



      Please let me know if you require further information.










      share|improve this question
















      I am trying to setup docker through WSL(ubuntu) on Windows 10 Home but ran into an issue when trying to use the docker-compose up command:



      $ docker-compose up
      ERROR: Couldn't connect to Docker daemon at http://localhost:2375 - is it running?


      I have the following configuration in my ~/.bashrc file



      #Insert new Path for Docker and Alias

      PATH="$HOME/bin:$HOME/.local/bin:$PATH"

      PATH="$PATH:/mnt/c/Program Files/Docker Toolbox"

      alias docker=docker.exe

      alias docker-machine=docker-machine.exe

      // Other code

      export DOCKER_HOST='tcp://localhost:2375'


      docker-machine seems to be running fine as the docker ps command shows a list of containers.



      From my research, if I were to use Docker for Windows (which does not run on Windows Home) ; I need to turn on the “Expose daemon on tcp://localhost:2375 without TLS” option in the settings. Since I am using “Docker Toolbox + VirtualBox”, I would like to ask what would be the equivalent?



      Please let me know if you require further information.







      docker ubuntu windows-subsystem-for-linux






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 25 '18 at 16:00







      Drahcir

















      asked Nov 21 '18 at 9:32









      DrahcirDrahcir

      5,168175573




      5,168175573
























          0






          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',
          autoActivateHeartbeat: false,
          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%2f53408960%2fissue-with-setting-up-docker-on-wsl-in-windows-10-home%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53408960%2fissue-with-setting-up-docker-on-wsl-in-windows-10-home%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

          Alcedinidae

          RAC Tourist Trophy