zoukankan      html  css  js  c++  java
  • Win10家庭版安装Docker Desktop报错:Containers Windows Feature is not available

    安装步骤参照 win10家庭版安装Docker for Windows

    过程中 Installation failed

    Containers Windows Feature is not available
       在 CommunityInstaller.EnableFeaturesAction.GetFeaturesToEnable()
       在 CommunityInstaller.EnableFeaturesAction.<DoAsync>d__29.MoveNext()
    --- 引发异常的上一位置中堆栈跟踪的末尾 ---
       在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       在 CommunityInstaller.InstallWorkflow.<HandleD4WPackageAsync>d__29.MoveNext()
    --- 引发异常的上一位置中堆栈跟踪的末尾 ---
       在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       在 CommunityInstaller.InstallWorkflow.<ProcessAsync>d__24.MoveNext()

    解决办法,把以下命令保存成批处理文件,以管理员身份运行

    pushd "%~dp0"
    dir /b %SystemRoot%servicingPackages*containers*.mum >containers.txt
    for /f %%i in ('findstr /i . containers.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%servicingPackages\%%i"
    del containers.txt
    Dism /online /enable-feature /featurename:Containers -All /LimitAccess /ALL
    pause

    然后重启重新安装Docker Desktop Installer.exe即可

  • 相关阅读:
    创建windows服务
    Scrum演练(2)
    数据结构链表创建与输出
    C++ XML解析之tinyXML
    解决VS2010启动速度死慢的问题
    标准C++中string类的用法总结
    模版参数编译时检查方法,利用typedef
    static的作用
    数据结构实现链表的反转
    字节对齐
  • 原文地址:https://www.cnblogs.com/zhiqsyr/p/12364124.html
Copyright © 2011-2022 走看看