I want to create a home PC verification environment Install Docker Hub At that time, docker run hello-world could not be executed, so I will summarize the contents I tried variously
Conclusion ・ Check if Docker is running
environment ・ Windows10 home
First, install by referring to this article [I tried Docker Desktop for Windows for Windows 10 Home as soon as possible] (https://techracho.bpsinc.jp/ebi/2020_03_27/90477)
I completed the installation of Docker Hub and tried hello-world, but it did not start
C:\Users\name>docker run hello-world
docker: error during connect: This error may indicate that the docker daemon is not running.: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/create: open //./pipe/docker_engine: The system cannot find the file specified.
See 'docker run --help'.
I get an error like this When I check the error, it seems that it can not be connected because the environment variable is not set correctly
If you look it up, you will reach the following page [Error in Docker for Windows] (https://qiita.com/Y-Kanoh/items/180e73c47970ea9bf5bc) [Network error with docker] (http://acchi-muite-hoi.hatenablog.com/entry/2016/04/26/223559) [windows: docker: command not found( docker not added to path)] (https://github.com/docker/toolbox/issues/260)
I set the environment variable from the command, but I searched the environment variable from the setting and set the folder where Docker was installed in PATH from there
I set the environment variable and execute hello-world again, but I get the above error and cannot execute it. Even if I reinstall it once and try to execute it, it is in the same state
Further search hits the following page [An error occurs when executing the docker command in a Windows 10 environment] (https://ja.stackoverflow.com/questions/63492/windows10%E3%81%AE%E7%92%B0%E5%A2%83%E3%81%A7-docker-%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%82%92%E5%AE%9F%E8%A1%8C%E3%81%99%E3%82%8B%E3%81%A8%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%8C%E7%99%BA%E7%94%9F%E3%81%99%E3%82%8B)
The answer to this stack overflow was "Isn't Docker Desktop running?" And when I saw the Docker mark on the taskbar, it wasn't running in red ...
When I started Docker, hello-world was completed.
Recommended Posts