Docder 安装——Windows版

Docder 安装——Windows版

docder 下载地址
https://smartidedl.blob.core.chinacloudapi.cn/docker/20210926/Docker-win.exe

1、使用 PowerShell 启用 Hyper-V

以管理员身份打开 PowerShell 控制台,运行以下命令:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

2、通过控制面板“设置”启用 Hyper-V 角色

右键单击 Windows 按钮并选择“应用和功能”。选择相关设置下右侧的“程序和功能”。选择“打开或关闭 Windows 功能”。选择“Hyper-V”,然后单击“确定”。

注意:安装完成后,系统会提示你重新启动计算机。
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

安装Docker Desktop:

双击下载成功的Docker Desktop Installer.exe应用。

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
选择同意
在这里插入图片描述
在这里插入图片描述

配置阿里云镜像加速地址:

阿里云容器镜像服务 ACR 

进入管理控制台获取镜像加速器地址:https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors

在这里插入图片描述
在这里插入图片描述

检查
在这里插入图片描述

验证Docker桌面版 可以正常使用:

打开命令行窗口运行以下命令:

docker run hello-world

看到以下输出则表示安装成功,且能正常工作:

在这里插入图片描述
在这里插入图片描述

通过启用WSL2安装Docker:

注意:通过启用Hyper-v虚拟化的方式在windows中安装Dokcer以外,我们还可以通过安装配置WSL2环境来安装。

WSL2 是 Windows Subsystem for Linux
二代的简称,WSL2允许用户在Windows上运行受支持的Linux发行版。当前的Docker桌面版可以使用WSL2作为其Linux后台运行。因此我们需要首先在Windows操作系统上激活WSL2功能才能使用Docker做面板。

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 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 [email protected] started root /Library/LaunchDaemons/[email protected] 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
发出的红包

打赏作者

不懂说安全

创作不易您打赏是对我最大的鼓励

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值