WSL2 bug

作者: 西北偏北 | 来源:发表于2020-10-11 12:07 被阅读0次

错误现象

Stdout:

Stderr:
2020/05/27 20:01:37 resolving /mnt/host/c/Program Files/Docker/Docker/resources/wsl/docker-wsl-cli.iso...
Error: mounting wslCLIDest: stat /mnt/host/c/Program Files/Docker/Docker/resources/wsl/docker-wsl-cli.iso: no such file or directory
2020/05/27 20:01:37 stat /mnt/host/c/Program Files/Docker/Docker/resources/wsl/docker-wsl-cli.iso: no such file or directory
mounting wslCLIDest
main.doRun
/go/src/github.com/docker/pinata/linuxkit/pkg/wsl-bootstrap/main.go:224
main.run.func1
/go/src/github.com/docker/pinata/linuxkit/pkg/wsl-bootstrap/main.go:83
github.com/docker/pinata/vendor/github.com/spf13/cobra.(*Command).execute
/go/src/github.com/docker/pinata/vendor/github.com/spf13/cobra/command.go:838
github.com/docker/pinata/vendor/github.com/spf13/cobra.(*Command).ExecuteC
/go/src/github.com/docker/pinata/vendor/github.com/spf13/cobra/command.go:943
github.com/docker/pinata/vendor/github.com/spf13/cobra.(*Command).Execute
/go/src/github.com/docker/pinata/vendor/github.com/spf13/cobra/command.go:883
main.main
/go/src/github.com/docker/pinata/linuxkit/pkg/wsl-bootstrap/main.go:25
runtime.main
/usr/local/go/src/runtime/proc.go:203
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1373`

错误原因

wsl2本身的bug,具体原因不详

解决办法

  • quit docker desktop
  • stop docker service in service.msc which should be called com.docker.service


    file
  • shutdown wsl: wsl --shutdown
  • start docker windows

wsl2的使用

windows 的docker desktop只是基于wsl中的linux做初始化,真正的docker守护进程并不在linux内。所以在对应的wsl系统中,敲击docker命令会得到如下问题

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

所以,一切的docker的管理,还得在windows的shell中进行

参考资料

https://github.com/docker/for-win/issues/6822

欢迎关注我的个人公众号"西北偏北UP",记录代码人生,行业思考,科技评论

相关文章

  • WSL2 bug

    错误现象 错误原因 wsl2本身的bug,具体原因不详 解决办法 quit docker desktop stop...

  • WSL2中使用adb和fastboot

    最近在用WSL2编译aosp和lineageos ,由于WSL2和WSL使用不同的技术,导致WSL2中Ubuntu...

  • Kind 安装单机k8s——windows

    前置条件 已经安装 WSL2 已经安装了Docker Desktop 并使用 WSL2 作为 based engi...

  • 手机访问wsl2网站

    查看wsl2的ip 开启服务,如nginx(配置端口为非80端口) 确保 wsl2的ip:nginx配置中的端口 ...

  • Windows11 + CLion + WSL2开发ROS

    前言 我的WSL2是ubuntu 18.04,安装好了ROS,WSL2里虽然可以直接安装CLion,也有图形化界面...

  • WSL2配置记录

    WSL2安装注意事项 开启CPU虚拟化,并在“启用与关闭windows功能”中开启"虚拟机平台" 启用WSL2提示...

  • win10利用WSL2安装docker的2种方式

    前言 windows10目前推出了WSL2,相对于WSL采用API转换的方式, WSL2 则完全不同,win10 ...

  • WSL2 和 目前的VMWare不兼容,慎用

    WSL2 与VMWare不兼容两者只能选其一。当时没看WSL2,就找了篇教程进行安装,结果悲剧了VMWare不能用...

  • 为 WSL2 一键设置代理

    在 WSL2 环境中 clone 一个很大的 git 项目,不走代理速度很慢,所以研究了一下怎么让 WSL2 走 ...

  • 重装系统后恢复wsl2

    WSL2 太大备份麻烦. 重装系统后WSL2 找不到应用没有办法打开 只能找到 首先安装WSL 之后再安装WSL2...

网友评论

      本文标题:WSL2 bug

      本文链接:https://www.haomeiwen.com/subject/ivcepktx.html