宣布推出适用于Windows Beta的Docker

I'm continuing to learn about Docker and how it works in a developer's workflow (and Devops, and Production, etc as you move downstream). This week Docker released a beta of their new Docker for Mac and Docker for Windows. They've included OS native apps that run in the background (the "tray") that make Docker easier to use and set up. Previously I needed to disable Hyper-V and use VirtualBox, but this new Docker app automates Hyper-V automatically which more easily fits into my workflow, especially if I'm using other Hyper-V features, like the free Visual Studio Android Emulator.

我将继续学习Docker及其在开发人员的工作流程中的工作原理(以及向下游迁移时的Devops和Production等)。 Docker本周发布了Mac版和Windows版Docker的Beta版。 他们包括了在后台运行的OS本机应用程序(“托盘”),使Docker易于使用和设置。 以前,我需要禁用Hyper-V并使用VirtualBox,但是这个新的Docker应用程序会自动自动执行Hyper-V,这更容易适合我的工作流程,尤其是当我使用其他Hyper-V功能(例如免费的Visual Studio Android仿真器)时

I signed up at http://beta.docker.com. Once installed, when you run the Docker app with Hyper-V enabled Docker automatically creates the Linux "mobylinux" VM you need in Hyper-V, sets it up and starts it up.

我在http://beta.docker.com上注册。 安装后,在启用Hyper-V的情况下运行Docker应用程序时,Docker会自动在Hyper-V中创建所需Linux“ mobylinux” VM,进行设置并启动。

宣布推出适用于Windows Beta的Docker

After Docker for Windows (Beta) is installed, you just run PowerShell or CMD and type "docker" and it's already set up with the right PATH and Environment Variables and just works. It gets setup on your local machine as http://docker but the networking goes through Hyper -V, as it should.

安装适用于Windows的Docker(测试版)后,您只需运行PowerShell或CMD并键入“ docker”,它已经使用正确的PATH和环境变量进行了设置并且可以正常使用。 它在您本地计算机上的设置为http:// docker,但是网络通过Hyper -V正常运行。

The best part is that Docker for Windows supports "volume mounting" which means the container can see your code on your local device (they have a "wormhole" between the container and the host) which means you can do a "edit and refresh" type scenarios for development. In fact, Docker Tools for Visual Studio uses this feature - there's more details on this "Edit and Refresh "support in Visual Studio here.

最好的部分是Docker for Windows支持“卷安装”,这意味着容器可以在本地设备上看到您的代码(它们在容器和主机之间有一个“虫洞”),这意味着您可以执行“编辑和刷新”键入开发方案。 实际上,适用于Visual Studio的Docker工具使用了此功能-有关Visual Studio中“编辑和刷新”支持的更多详细信息,请点击此处

The Docker Tools for Visual Studio can be downloaded at http://aka.ms/dockertoolsforvs. It adds a lot of nice integration like this:

可以从http://aka.ms/dockertoolsforvs下载适用于Visual Studio的Docker工具。 它添加了很多很好的集成,例如:

宣布推出适用于Windows Beta的Docker

This makes the combination of Docker for Windows + Docker Tools for Visual Studio pretty sweet. As far as the VS Tools for Docker go, support for Windows is coming soon, but for now, here's what Version 0.10 of these tools support with a Linux container:

这使得适用于Windows的Docker +适用于Visual Studio的Docker Tools的组合非常美观。 就Docker的VS Tools而言,对Windows的支持即将到来,但就目前而言,以下是这些工具的0.10版本对Linux容器的支持:

  • Docker assets for Debug and Release configurations are added to the project

    用于调试和发布配置的Docker资产已添加到项目中
  • A PowerShell script added to the project to coordinate the build and compose of containers, enabling you to extend them while keeping the Visual Studio designer experiences

    在项目中添加了PowerShell脚本,以协调容器的构建和组成,使您能够在扩展容器的同时保持Visual Studio设计器的体验
  • F5 in Debug config, launches the PowerShell script to build and run your docker-compose.debug.yml file, with Volume Mapping configured

    在Debug配置中按F5键,启动PowerShell脚本以构建并运行docker-compose.debug.yml文件,并配置了Volume Mapping
  • F5 in Release config launches the PowerShell script to build and run your docker-compose.release.yml file, with an image you can verify and push to your docker registry for deployment to other environment

    Release配置中的F5启动PowerShell脚本以构建和运行docker-compose.release.yml文件,其中包含一个可以验证并推送到docker注册表的映像,以部署到其他环境

You can read more about how Docker on Windows works at Steve Lasker's Blog and also watch his video about Visual Studio's support for Docker in his video on Ch9 and again, sign up for Docker Beta at http://beta.docker.com.

您可以在Steve Lasker的博客上了解有关Windows上的Docker工作原理的更多信息,还可以在Ch9的视频中观看他关于Visual Studio对Docker的支持的视频,并在http://beta.docker.com上注册Docker Beta



Sponsor: Thanks to Seq for sponsoring the feed this week! Need to make sense of complex or distributed apps? Structured logging helps your team cut through that complexity and resolve issues faster. Learn more about structured logging with Serilog and Seq at https://getseq.net.

赞助商:感谢Seq本周赞助了这个提要! 需要了解复杂或分布式应用程序吗? 结构化日志记录可帮助您的团队消除这种复杂性并更快地解决问题。 在https://getseq.net上了解有关使用Serilog和Seq进行结构化日志记录的更多信息。

关于斯科特 (About Scott)

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

斯科特·汉塞尔曼(Scott Hanselman)是前教授,前金融首席架构师,现在是演讲者,顾问,父亲,糖尿病患者和Microsoft员工。 他是一位失败的单口相声漫画家,一个玉米种植者和一本书的作者。

宣布推出适用于Windows Beta的Docker
宣布推出适用于Windows Beta的Docker
宣布推出适用于Windows Beta的Docker
About   关于 Newsletter 时事通讯
Hosting By 主持人
宣布推出适用于Windows Beta的Docker

翻译自: https://www.hanselman.com/blog/docker-for-windows-beta-announced

相关文章: