In a Windows 10 environment, Docker tries to launch python 3.8, but an error occurs.

Asked 2 years ago, Updated 2 years ago, 79 views

In a Windows PowerShell environment, the following command fails:
Please let me know how to deal with it.

PSC:\Windows\system32>docker run -- name python38a-i-t python: 3.8/bin/bash
C:\Program Files\Docker\Docker\resources\bin\docker.exe:Error response from daemon: container e76352163bfea45b641101aa1c06002187c151bec4622cb5bcc47e63f48e2a12 encountered error during CreateProcess: failure: the system (failure system).
[Event Detail:  Provider: 00000000-0000-0000-0000-000000000000] extra info: {"CommandLine":"/bin/bash","WorkingDirectory":"C:\\","Environment":{"PYTHON_GET_PIP_SHA256":"421ac1d44c0cf9730a088e337867d974b91bdce4ea2636099275071878cc189e","PYTHON_GET_PIP_URL":"https://github.com/pypa/get-pip/raw/d59197a3c169cef378a22428a3fa99d33e080a5d/get-pip.py","PYTHON_PIP_VERSION": "20.0.2", "PYTHON_RELEASE": "3.8.2", "PYTHON_VERSION": "3.8.2", "EmulateConsole": true, "CreateStdInPipe": true, "CreateStdOutPipe": true, "ConsoleSize":49,12}

windows docker

2022-09-29 22:20

1 Answers

Docker Desktop for Windows includes Features running Linux and Windows containers.

CreateProcess:failure in a Windows system call:The system cannot find the file specified.(0x2)

The error message indicates that you are in Windows container mode.There is also an error that says /bin/bash does not exist in Windows.

I've been asking you a few questions over and over again, but as a fundamental issue, you need to decide whether you want to move the Linux or Windows container.Then, when you browse the website and various documents, make sure you know which mode it is written about.


2022-09-29 22:20

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.