zoukankan      html  css  js  c++  java
  • Windows10 Docker安装

    • 开启Hyper-V:控制面板——>程序和功能——>启动或关闭Windows功能——>开启Hyper-V
    • 安装Toolbox
      • 下载地址:https://www.docker.com/get-started;进入下载地址,依次点击下图红框,下载得到Docker for Windows Installer.exe
      • 双击安装包Docker for Windows Installer.exe,直接进行安装
    • 安装过程中报错
    1 Installation failed:one pre-requisite is not full filled
    2 Docker for Windows requires Windows 10 Pro or Enterpriser version 14393,or Windows server 2016 RTM to run
    3 # Docker可以支持在 Mac、Windows、Linux上安装
    4 # 但是在Windows10系统中Docker for Windows目前只能在64位的 Windows10 专业版、企业版、教育版下才能安装
    5 # Win7/Win8/Win10 家庭版需要通过Docker Toolbox来安装
      • 解决方法1:打开注册表,定位到HKEY_LOCAL_MACHINEsoftwareMicrosoftWindows NTCurrentVersion,点击CurrentVersion,在右侧找到EditionId,右键点击EditionId选择“修改“,在弹出的对话框中将第二项”数值数据“的内容改为Professional,然后点击确定
      • 解决方法2:管理员权限使用cmd执行下面命令CoreCountrySpecific,修改前先备份注册表(家庭版的EditionId为home)重启后此项注册表值会自动还原,但不影响docker运行
    1 REG ADD "HKEY_LOCAL_MACHINEsoftwareMicrosoftWindows NTCurrentVersion" /v EditionId /T REG_EXPAND_SZ /d Professional /F
    • 报错:Containers Windows Feature is not available
    1 # 使用管理员权限执行以下cmd
    2 pushd "%~dp0"
    3 dir /b %SystemRoot%servicingPackages*containers*.mum >containers.txt
    4 for /f %%i in ('findstr /i . containers.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%servicingPackages\%%i"
    5 del containers.txt
    6 Dism /online /enable-feature /featurename:Containers -All /LimitAccess /ALL
    7 pause
     
  • 相关阅读:
    如何查看MySQL的当前存储引擎?
    转载mysql数据库配置优化
    redis教程
    基于 Android APP 安全测试流程
    移动APP安全测试
    自动化测试用例如何进行参数化
    分享一波免费的PPT模板下载网站
    UI自动化-滑块验证码识别 java版本
    安全测试博客汇总
    妙手回春——GRUB系统引导器恢复指南
  • 原文地址:https://www.cnblogs.com/My-Sun-Shine/p/13547100.html
Copyright © 2011-2022 走看看