Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法运行Docker命令_Docker_Windows 10_Virtualbox_Docker For Windows - Fatal编程技术网

无法运行Docker命令

无法运行Docker命令,docker,windows-10,virtualbox,docker-for-windows,Docker,Windows 10,Virtualbox,Docker For Windows,我已经安装了适用于Windows的Docker,并尝试运行一个简单的命令,但出现以下错误: error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.29/containers/json: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Window

我已经安装了适用于Windows的Docker,并尝试运行一个简单的命令,但出现以下错误:

error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.29/containers/json: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
屏幕截图:

更新:

我刚刚在我的机器(Windows10)上重新安装了Docker,但现在我遇到了一个VirtualBox错误。我有什么遗漏吗

启动“默认”。。。
(默认)如果需要,请检查网络以重新创建。。。
(默认)Windows可能要求获得创建网络适配器的权限。有时,这样的确认窗口在任务栏中最小化。
(默认)创建新的仅主机适配器时产生错误:C:\Program Files\Oracle\VirtualBox\VBoxManage.exe hostonlyif create失败:
(默认值)0%。。。
(默认)进度状态:E_INVALIDARG
(默认)VBoxManage.exe:错误:无法创建仅限主机的适配器
(默认)VBoxManage.exe:错误:断言失败:[!ainterface name.isEmpty()]位于长cdecl HostNetworkInterface::init中的'F:\tinderbox\win-5.1\src\VBox\Main\src server\HostNetworkInterface eimpl.cpp'(74)(类com::Bstr,类com::Bstr,类com::Guid,枚举u MIDL\uu MIDL\uu itf\uu VirtualBox\u0000\u0038)。
(默认)VBoxManage.exe:错误:请与产品供应商联系!
(默认)VBoxManage.exe:错误:详细信息:代码E_失败(0x80004005)、组件HostNetworkInterfaceWrap、接口IHostNetworkInterface
(默认)VBoxManage.exe:错误:上下文:“enum RTEXITCODE_uuCDECL handleCreate(struct HandlerArg*)”位于文件VBoxManageHostonly.cpp的第94行
(默认)
(默认)这是一个已知的VirtualBox错误。不管怎样,让我们试着恢复。。。
在计算机启动时设置仅主机网络时出错:我们刚刚创建的仅主机适配器不可见。这是一个众所周知的VirtualBox错误。您可能希望卸载它,并至少重新安装5.0.12版,以解决此问题
看起来在步骤“检查默认状态”中出错。。。按任意键继续。。。

您的docker守护进程似乎没有运行。请将docker作为服务启动。请使用此作为参考:

因此您的docker未正确安装或未运行。错误信息已经很清楚了。先把它修好。