windows安装docder成功,运行却闪退

正文

windows安装了docker,运行时闪退

解决办法

第一步:安装Docker Desktop Installer
第二步:运行hy.cmd(主要是安装Hyper-V,打开搜索:启用或给关闭windows功能,查看是否安装成功)
第三步:安装wsl_update_x64
第四步:打开powerShell,执行命令:wsl -- set -default -version 2

hy.cmd(这是一个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
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Error: Invalid usage: unknown subcommand: `docder` xiaohei@xiaoheideMacBook-Pro ~ % brew services start docder Error: No available formula with the name "docder". Did you mean docker? xiaohei@xiaoheideMacBook-Pro ~ % sudo brew services start docder Error: No available formula with the name "docder". Did you mean docker? xiaohei@xiaoheideMacBook-Pro ~ % sudo brew services restart docder Error: No available formula with the name "docder". Did you mean docker? xiaohei@xiaoheideMacBook-Pro ~ % docker -v Docker version 24.0.2, build cb74dfcd85 xiaohei@xiaoheideMacBook-Pro ~ % sudo brew services restart docder Error: No available formula with the name "docder". Did you mean docker? xiaohei@xiaoheideMacBook-Pro ~ % sudo brew services list Name Status User File nginx started root /Library/LaunchDaemons/homebrew.mxcl.nginx.plist php@7.4 started root /Library/LaunchDaemons/homebrew.mxcl.php@7.4.plist xiaohei@xiaoheideMacBook-Pro ~ % sudo brew services docker Usage: brew services [subcommand] Manage background services with macOS' launchctl(1) daemon manager. If sudo is passed, operate on /Library/LaunchDaemons (started at boot). Otherwise, operate on ~/Library/LaunchAgents (started at login). [sudo] brew services [list] (--json): List information about all managed services for the current user (or root). [sudo] brew services info (formula|--all|--json): List all managed services for the current user (or root). [sudo] brew services run (formula|--all): Run the service formula without registering to launch at login (or boot). [sudo] brew services start (formula|--all|--file=): Start the service formula immediately and register it to launch at login (or boot). [sudo] brew services stop (formula|--all): Stop the service formula immediately and unregister it from launching at login (or boot). [sudo] brew services kill (formula|--all): Stop the service formula immediately but keep it registered to launch at login (or boot). [sudo] brew services restart (formula|--all): Stop (if necessary) and start the service formula immediately and register it to launch at login (or boot). [sudo] brew services cleanup: Remove all unused services. --file Use the service file from this location to start the service. --all Run subcommand on all services. --json Output as JSON. -d, --debug Display any debugging information. -q, --quiet Make some output more quiet. -v, --verbose Make some output more verbose. -h, --help Show this message. Error: Invalid usage: unknown subcommand: `docker` xiaohei@xiaoheideMacBook-Pro ~ % brew services restart docker Error: Formula `docker` has not implemented #plist, #service or installed a locatable service file xiaohei@xiaoheideMacBook-Pro ~ % docker ps Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? xiaohei@xiaoheideMacBook-Pro ~ % docker images Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? xiaohei@xiaoheideMacBook-Pro ~ % brew services start docker Error: Formula `docker` has not implemented #plist, #service or installed a locatable service file xiaohei@xiaoheideMacBook-Pro ~ % 帮我看下错误
06-07

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值