• 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即可

  • 相关阅读:
    MS SQL Server中的CONVERT日期格式化大全
    简历
    Spring源码IOC部分容器简介【1】
    HadoopHDFS设计原理
    1.Linux系统简介
    3.大话C语言变量和数据类型
    2.C语言初探
    7.函数
    8.C语言预处理命令
    9.指针
  • 原文地址:https://www.cnblogs.com/zhiqsyr/p/12364124.html
Copyright © 2020-2023  润新知