Common error encountered while setting up Docker in Windows

in #gradnium3 years ago



I've been tasked by @trostparadox to set up a development sandbox of nitrous. While trying to do so by following the steps at https://github.com/hive-engine/nitrous/blob/master/README.md, I've faced a few problems in setting up Docker. The instructions listed in https://get.docker.com explain the docker installation only for Linux, macOS systems. The clear steps for docker installation in the Windows system are available at https://docs.docker.com/desktop/windows/install/.

<p dir="auto">Common errors that I've seen:<br /> 1.docker build -t="myname/condenser:mybranch" .<br /> error during connect: <strong>This error may indicate that the docker daemon is not running <p dir="auto"><img src="https://images.hive.blog/768x0/https://files.peakd.com/file/peakd-hive/bhanutejap/23t88FPfhyZa5fNqdXjSvJbZv8g8GgT7CEnBrrVNH3SmRyrE52FYdCFAguZikLd7Pwje8.png" alt="image.png" srcset="https://images.hive.blog/768x0/https://files.peakd.com/file/peakd-hive/bhanutejap/23t88FPfhyZa5fNqdXjSvJbZv8g8GgT7CEnBrrVNH3SmRyrE52FYdCFAguZikLd7Pwje8.png 1x, https://images.hive.blog/1536x0/https://files.peakd.com/file/peakd-hive/bhanutejap/23t88FPfhyZa5fNqdXjSvJbZv8g8GgT7CEnBrrVNH3SmRyrE52FYdCFAguZikLd7Pwje8.png 2x" /> <p dir="auto">2.error Command failed with exit code 1. <p dir="auto"><strong>Resolution for the above errors:<br /> For successful installation and usage of Docker in Windows,<br /> Complete Step 4 (Step 4 - Download the Linux kernel update package) in the below article:<br /><span> <a href="https://docs.microsoft.com/en-us/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://docs.microsoft.com/en-us/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package <p dir="auto"><span>After following the steps in ‘Docker’ section under Installation in <a href="https://github.com/hive-engine/nitrous/blob/master/README.md" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://github.com/hive-engine/nitrous/blob/master/README.md , i.e., <pre><code>git clone https://github.com/eonwarped/nitrous cd nitrous docker build -t="myname/condenser:mybranch" . docker run -it -p 8080:8080 myname/condenser:mybranch <p dir="auto">Here's the screenshot of the container running successfully, <p dir="auto"><img src="https://images.hive.blog/768x0/https://files.peakd.com/file/peakd-hive/bhanutejap/Eo2APK8otPHoymRy6NEEfjxdx7HAgt14SEx7Ycw3hrsjsysHgfA6Ur2HUxEwUAHvCv2.png" alt="image.png" srcset="https://images.hive.blog/768x0/https://files.peakd.com/file/peakd-hive/bhanutejap/Eo2APK8otPHoymRy6NEEfjxdx7HAgt14SEx7Ycw3hrsjsysHgfA6Ur2HUxEwUAHvCv2.png 1x, https://images.hive.blog/1536x0/https://files.peakd.com/file/peakd-hive/bhanutejap/Eo2APK8otPHoymRy6NEEfjxdx7HAgt14SEx7Ycw3hrsjsysHgfA6Ur2HUxEwUAHvCv2.png 2x" /> <p dir="auto"><img src="https://images.hive.blog/768x0/https://files.peakd.com/file/peakd-hive/bhanutejap/23sxpRzJKzKUvKXMtwvyFF4A19XDAqeCudqidbmyfcKtiXNtJPvbGwXkB56Fmu5WmVYMM.png" alt="image.png" srcset="https://images.hive.blog/768x0/https://files.peakd.com/file/peakd-hive/bhanutejap/23sxpRzJKzKUvKXMtwvyFF4A19XDAqeCudqidbmyfcKtiXNtJPvbGwXkB56Fmu5WmVYMM.png 1x, https://images.hive.blog/1536x0/https://files.peakd.com/file/peakd-hive/bhanutejap/23sxpRzJKzKUvKXMtwvyFF4A19XDAqeCudqidbmyfcKtiXNtJPvbGwXkB56Fmu5WmVYMM.png 2x" />
Sort:  

Congratulations @bhanutejap! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s):

<table><tr><td><img src="https://images.hive.blog/60x70/http://hivebuzz.me/@bhanutejap/upvoted.png?202202230859" /><td>You received more than 10 upvotes.<br />Your next target is to reach 50 upvotes. <p dir="auto"><sub><em>You can view your badges on <a href="https://hivebuzz.me/@bhanutejap" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">your board and compare yourself to others in the <a href="https://hivebuzz.me/ranking" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Ranking<br /> <sub><em>If you no longer want to receive notifications, reply to this comment with the word <code>STOP <p dir="auto"><strong><span>Check out the last post from <a href="/@hivebuzz">@hivebuzz: <table><tr><td><a href="/hive-122221/@hivebuzz/pum-202202-20"><img src="https://images.hive.blog/64x128/https://i.imgur.com/R2XacsJ.png" /><td><a href="/hive-122221/@hivebuzz/pum-202202-20">Hive Power Up Month - Feedback from February day 20 <h6>Support the HiveBuzz project. <a href="https://hivesigner.com/sign/update_proposal_votes?proposal_ids=%5B%22199%22%5D&approve=true" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Vote for <a href="https://peakd.com/me/proposals/199" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">our proposal!