admin管理员组

文章数量:1550529

一.报错:
error during connect: This error may indicate that the docker daemon is not running.: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version: open //./pipe/docker_engine: The system cannot find the file specified.

error during connect: This error may indicate that the docker daemon is not running.: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json: open //./pipe/docker_engine: The system cannot find the file specified.

error during connect: This error may indicate that the docker daemon is not running.: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/json: open //./pipe/docker_engine: The system cannot find the file specified.

error during connect: This error may indicate that the docker daemon is not running.: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/search?limit=25&term=nginx: open //./pipe/docker_engine: The system cannot find the file specified.

解决办法:
CMD命令行

cd "C:\Program Files\Docker\Docker"
DockerCli.exe -SwitchDaemon

二.如果你是除Windows专业版的用户
1.将如下代码添加到记事本中,并另存为Hyper-V.cmd文件。代码如下:

pushd “%~dp0”

dir /b %SystemRoot%\servicing\Packages*Hyper-V*.mum >hyper-v.txt

for /f %%i in (‘findstr /i . hyper-v.txt 2^>nul’) do dism /online /norestart /add-package:“%SystemRoot%\servicing\Packages%%i”

del hyper-v.txt

Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL

2.桌面上,我们找到并右键点击【Hyper-V.cmd】文件图标,在右键菜单中点击:以管理员身份运行

3.然后弹出一个 用户帐户控制 - Windows命令处理程序 对话框,我们点击:是。

4.然后系统自动进行Windows命令处理,我们等待处理完成以后,在最末处输入:Y,电脑自动重启,进行配置更新。

5.重启后可以在“打开或关闭windows功能”里看到已经Hyper-V已经安装并打上勾了。

6.以管理员身份运行cmd然后输入:
REG ADD "HKEY_LOCAL_MACHINE\software\Microsoft\Windows NT\CurrentVersion" /v EditionId /T REG_EXPAND_SZ /d Professional /F
将家庭版伪装成专业版。然后测试即可

本文标签: WindowsDocker