启用运行Docker命令错误

我已经安装了docker-for-windows并尝试运行简单的命令,但是我得到了错误

“连接时发生错误:获取http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.29/containers/json :打开//./pipe/docker_engine:系统找不到指定的文件在默认守护进程configuration在Windows上,docker客户端必须运行升级才能连接,这个错误也可能表明docker守护进程没有运行。

在这里输入图像说明

更新:

我刚刚在我的机器上重新安装了Docker(Windows 10)。 但现在我得到一个VirtualBox错误。我在这里失踪的东西。

Starting "default"... (default) Check network to re-create if needed... (default) Windows might ask for the permission to create a network adapter. Sometimes, such confirmation window is minimized in the taskbar. (default) Creating a new host-only adapter produced an error: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe hostonlyif create failed: (default) 0%... (default) Progress state: E_INVALIDARG (default) VBoxManage.exe: error: Failed to create the host-only adapter (default) VBoxManage.exe: error: Assertion failed: [!aInterfaceName.isEmpty()] at 'F:\tinderbox\win-5.1\src\VBox\Main\src-server\HostNetworkInterfaceImpl.cpp' (74) in long __cdecl HostNetworkInterface::init(class com::Bstr,class com::Bstr,class com::Guid,enum __MIDL___MIDL_itf_VirtualBox_0000_0000_0038). (default) VBoxManage.exe: error: Please contact the product vendor! (default) VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface (default) VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleCreate(struct HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp (default) (default) This is a known VirtualBox bug. Let's try to recover anyway... Error setting up host only network on machine start: The host-only adapter we just created is not visible. This is a well known VirtualBox bug. You might want to uninstall it and reinstall at least version 5.0.12 that is is supposed to fix this issue Looks like something went wrong in step ´Checking status on default´... Press any key to continue...

这似乎是你的docker守护进程没有运行。 请开始您的docker作为service.Please使用此作为参考: https : //www.coretechnologies.com/products/AlwaysUp/Apps/StartDockerDaemonAsAWindowsService.html