首页 > 系统相关 >Windows 上 执行docker pull命令 提示:The system cannot find the file specified.

Windows 上 执行docker pull命令 提示:The system cannot find the file specified.

时间:2023-09-27 10:39:37浏览次数:36  
标签:pull Windows error system may above Linux docker Docker




Windows 上 执行docker pull命令 提示:The system cannot find the file specified._docker


错误提示

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.

解决办法

在cmd 窗口中执行如下命令

cd C:\Program Files\Docker\Docker

DockerCli.exe -SwitchDaemon

重新打开一个cmd窗口,然后再次执行docker pull 得相关命令,一切正常

原因分析

Especially on windows machine when you see the above error after a docker update, try the above commands.

It appears like the Docker Desktop UI may indicate that you are already using Linux Containers, but the update may have messed up that setting.

Running the above commands will set to Linux Containers and there after you can work happily.

翻译一下:

特别是在windows machine上,当您在docker更新后看到上述错误时,请尝试上述命令。

看起来Docker Desktop UI可能表明您已经在使用Linux容器,但更新可能会弄乱该设置。

运行上述命令将设置为Linux容器,然后您就可以愉快地工作了。

标签:pull,Windows,error,system,may,above,Linux,docker,Docker
From: https://blog.51cto.com/liwen629/7621127

相关文章

  • 详解git pull命令和使用过程中遇到的常见问题:fatal: ‘origin‘ does not appear to b
    使用gitpull同步远程代码使用git管理测试相关代码时,因为测试代码本身量级不大,所以很少使用分支,默认都使用master(主分支),当我们想要从远程origin(origin是远程仓remoterepository,clone到本地的默认名字)。当主机的master分支拉取代码过来和本地的当前分支进行合并时,需要使用如下命令:g......
  • 库函数 | C++17 std::filesystem文件系统 用法指北
    本文将针对常用的场景,对std::filesystem的使用逐一进行验证:判断文件夹是否存在创建单层目录逐级创建多层目录创建多级目录当前文件路径创建文件"from.dat"获取相对于base的绝对路径文件拷贝移动文件或重命名创建文件“example.dat”获取文件大小获取文件最后修改......
  • C# 获取文件夹和文件列表,与Windows系统看到的保持一致(包括隐藏文件)
    Windows系统中有很多系统隐藏的文件,如果不经过筛选,就会查出来多很多文件夹和文件。所以需要过滤掉FileAttributes.Hidden|FileAttributes.System的文件夹和文件//创建一个DirectoryInfo对象vardirectoryInfo=newDirectoryInfo(folderPa......
  • windows使用git bash 无法交互键盘上下键移动选择选项的解决方法
    windows使用gitbash无法交互键盘上下键移动选择选项的解决方法 来源1、直接通过数字键来选择我们看到的效果是这样的,>这个右尖括号指向的是第一条。我们如果想选择node-sass,我们可以输入2,并回车来选中。如果想选择Default(Vue3Preview)([Vue3]bable,eslint),我们......
  • 内网权限提升系统学习(windows)
    内网权限提升系统学习(windows)基础知识windows的权限分为四种User:普通用户权限Administrator:管理员权限,可以利用windows的机制将自己升级为System权限System:系统权限TrustedInstaller:最高权限提权分为两种:纵向提权横向提权系统内核溢出漏洞提权1.手动执行命令发......
  • windows环境安装make命令
    windows环境安装make命令弩哥++于2023-05-1517:50:00发布3067收藏7文章标签:windows版权一、Make简介Make是一种流行的构建工具,常用于将源代码转换成可执行文件或者其他形式的输出文件(如库文件、文档等)。Make可以自动化地执行编译、链接等一系列操作,提高开发效率。Ma......
  • Linux访问Windows共享
    在Linux中创建一个挂载点,这个挂载点将用来挂载Windows共享。可以使用sudomkdir/mnt/windows创建一个名为“windows”的目录作为挂载点。挂载Windows共享,执行命令sudomount-tcifs-ousername=windows_username,password=windows_password//windows_computer_name/sha......
  • 基于WMI更新Windows系统信息采集程序sysInfo的一些收获
    一、网络安全至关重要没有网络安全就没有国家安全。当下正值2023年国家网络安全宣传周(9月11日至17日)在全国范围举行,而第20届中国—东盟博览会也在9月16日至19日在广西南宁举行,网络安全检测和保障至关重要。二、编写sysInfo的目的单位电脑比较多,电脑专业技术人员少,逐台上机检测花费......
  • 网安工具 | Windows便携式渗透测试环境PentestBox入门到进阶使用指南
    [点击......
  • Windows 安装并配置 MySQL 5.7
    Windows安装并配置MySQL5.7 Windows下安装MySQL有两种方式:下载安装包,根据向导提示一步步安装,不需要什么配置,比较简单下载压缩包,通过命令来安装和配置本文介绍第二种安装方法,使用的MySQL版本为5.7.38假设你已经下载了MySQL压缩文件安装包(官网下载地址:https://www.mysql.......