温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Windows Server2012 R2安装Docker的方法

发布时间:2022-04-25 15:42:34 来源:亿速云 阅读:657 作者:iii 栏目:开发技术

本篇内容主要讲解“Windows Server2012 R2安装Docker的方法”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“Windows Server2012 R2安装Docker的方法”吧!

安装包下载

windows10、Windows Server 2016以上系统可直接使用安装包,低版本系统需要使用 Docker Toolbox 来进行安装使用 Docker。

安装步骤

开启 Cpu 的虚拟化支持。通过任务管理器查看,如下图所示。

Windows Server2012 R2安装Docker的方法

☘️安装 Docker Toolbox

按照提示进行安装。

Windows Server2012 R2安装Docker的方法

勾选上Install VirtualBox …

Windows Server2012 R2安装Docker的方法

勾选上“始终信任来自Oracle…”的软件。

Windows Server2012 R2安装Docker的方法

安装成功后,桌面显示的三个快捷启动方式。

Windows Server2012 R2安装Docker的方法

☘️启动Docker

打开桌面上的 Docker Quickstart Terminal,正常启动界面如下图所示。

Windows Server2012 R2安装Docker的方法

测试Docker

docker -v
docker run hello-world
docker images

如下图表示Docker运行正常

Windows Server2012 R2安装Docker的方法

☘️遇到的报错提示

1.未找到Boot2Docker

Running pre-create checks…
(default)No default Boot2Docker ISO found locally, downloading the latest release…
Error with pre-create check: "Get https://api.github.com/repos/boot2docker/boot2 922
docker/releases/latest: dial tcp 192.30.252.125:443: connectex: A connection att
empt failed because the connected party did not properly respond after a period
of time, or established connection failed because connected host has failed to r
espond."
Looks like something went wrong in step ‘Checking if machine default exists’…
Press any key to continue…

解决办法:将boot2docker.iso (如下图红框显示文件)复制到 %HOMEPATH%.docker\machine\cache

Windows Server2012 R2安装Docker的方法

可以参考我的文件路径,只需将用户名更改为你的。

Windows Server2012 R2安装Docker的方法

到此,相信大家对“Windows Server2012 R2安装Docker的方法”有了更深的了解,不妨来实际操作一番吧!这里是亿速云网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI