其实前几天收到了Docker Team发来的Docker Beta申请通过的邮件,由于在上学,我就搁置了几天。
现在我们就一起来一睹真容吧~
所谓Docker Beta,就是Docker的Mac和Windows版本测试项目。
如果你在用Mac或者Windows而又苦于安装不了Docker的话,可以点下面这个链接去申请。(Windows版本要求在Windows 10 Pro/企业版/教育版 10586 或者以上)
经过一番等待后,你就会收到一封让你满心欢悦的邮件~
点下中间那个按钮,登录你的Docker帐号后,就可以看到有关Docker Beta的下载链接和文档。
这次的安装包缩减了1/3诶O(≧∇≦)O
安装的话很简单,打开安装包,一步一步往下就可以了
安装的时候稍微看了下文档,给大家复制一段beta的优势
- Faster and more reliable - No more VirtualBox! On Mac, the Docker Engine runs in an xhyve Virtual Machine (VM) on top of an Alpine Linux distribution. The VM is managed by the native Docker application. On Windows, the Docker Engine is running in a Hyper-V VM. You do not need Docker Machine (
docker-machine
) to run Docker for Mac and Docker for Windows.- Native apps for better tools integration - Docker for Mac and Docker for Windows are native applications, including native user interfaces and the ability to stay updated automatically. The Docker tools are bundled with these apps, including the Docker command line interface (CLI), Docker Compose, and Docker Machine.
- Use with Docker Toolbox and Docker Machine - Docker for Mac and Docker for Windows can be used at the same time as Docker Toolbox on the same machine. Docker for Mac and Docker for Windows do not include Kitematic yet. So, for now, the only reason you would still need both Toolbox and Docker for Mac or Windows is to run Kitematic. (See Docker for Mac vs. Docker Toolbox in the Mac documentation. A Windows-specific version is coming soon.)
- Volume mounting for your code and data - Volume data access is fast and works correctly.
- Support for multiple architectures out-of-the-box - Docker for Mac and Windows lets you build and run Docker images for Linux x86 and ARM. (See Leveraging Multi-Architecture Support in the Mac documentation. A Windows-specific version is coming soon.)
也就是说这次的Docker Beta Windows版弃用了VirtualBox而采用了原生的Hyper-v,也就是说如果你的Windows有安装VirtualBox或者VMWare的话,安装后这些虚拟机是不能用的,这点务必要注意。
安装完后打开桌面可爱的Docker for Windows小图标,然后就出现了提示
啊,都怪我,上次为了安装VirtualBox,关掉了Hyper-V……
算了,装吧~Install & Restart
咯咯咯,重启中~
好啦,重启后再打开,就会出现要你输入Invite Token,这个东西在邮件中喔,输吧……
然后电脑就会疯狂运转,在右下角会出现Docker正在初始化(英文)的提示
这个时候如果你把Hyper-V管理器打开就会发现,Docker创建了一个叫做MobyLinux的VM,并分配了2G的内存(我机器内存不足,调低了)
喝一杯水,然后有提示Docker初始化完成,你就可以使用了喔~
顺便一提,这个主机的主机名是docker,也就是说访问http://docker/而不必使用http://172.0.0.112(docker的内网地址)喔~
おしまい、谢谢观看~
第一个:HelloWorld
第二个:ubuntu
第三个:nginx