admin管理员组文章数量:1577827
因为我的电脑是window家庭版,所以安装的时候有点麻烦,记录下
一、前提条件
需要Windows功能:Hyper-V。
打开控制面板 - 程序和功能 - 启用或关闭Windows功能,勾选Hyper-V,然后点击确定即可
但是我并没有在我电脑上找到这个文件,后来查询知道是因为windows家庭版的原因,但是换系统多么麻烦,于是乎:
家庭版安装docker
家庭版添加Hyper-V
新建一个记事本文件
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
然后把后缀改为bat,右键管理员身份运行。 这个过程需要稍等会儿 不要着急。
等待安装完成,输入Y自动重启电脑即可。
二、运行安装程序:
这次报的错误为Docker Desktop requires Windows 10 Pro or Enterprise version 15063 to run
意思是安装docker必须要win10专业版,我不信邪~
但是 docker 要查系统版本号怎么办?那就骗它。打开注册表编辑器,找到下图所示的 EditionID:
把数值数据改成 Professional,让docker认为我们是商业版哈哈哈。
再次安装 docker
三、但是有报错:容器窗口功能不可用
Containers Windows Feature is not available
意思是容器窗口功能不可用
新建一个containers.bat,内容如下:
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*containers*.mum >containers.txt
for /f %%i in ('findstr /i . containers.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del containers.txt
Dism /online /enable-feature /featurename:Containers -All /LimitAccess /ALL
pause
保存后右键使用管理员权限运行
同理等待运行完成,输入Y重启电脑
再次安装 docker,成功运行
注意点:记得勾选 use windows containers instead of linux containers(使用 windows 容器而不是 linux 容器)
四、配置镜像加速:
https://cr.console.aliyun/cn-hongkong/mirrors
因为我安装的是老版本,所以在:
将加速阿里云地址放到这里
就好了。
使用docker info命令查看是否成功
本文标签: 家庭版教程DesktoprequiresDocker
版权声明:本文标题:windows10家庭版安装docker教程,报Docker Desktop requires Windows 10 Pro or Enterprise version 15063 to run. 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dianzi/1727827739a1132334.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论