mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-01-25 23:11:02 +08:00
[]
This commit is contained in:
parent
4be3e9c08d
commit
0b4464f453
@ -1,122 +0,0 @@
|
||||
translating by flowsnow
|
||||
|
||||
THE BEST WAY TO LEARN DOCKER FOR FREE: PLAY-WITH-DOCKER (PWD)
|
||||
============================================================
|
||||
|
||||
|
||||
Last year at the Distributed System Summit in Berlin, Docker captains[ Marcos Nils][15] and[ Jonathan Leibiusky][16] started hacking on an in-browser solution to help people learn Docker. A few days later, [Play-with-docker][17] (PWD) was born.
|
||||
|
||||
PWD is a Docker playground which allows users to run Docker commands in a matter of seconds. It gives the experience of having a free Alpine Linux Virtual Machine in browser, where you can build and run Docker containers and even create clusters in[ Docker Swarm Mode][18]. Under the hood Docker-in-Docker (DinD) is used to give the effect of multiple VMs/PCs. In addition to the playground, PWD also includes a training site composed of a large set of Docker labs and quizzes from beginner to advanced level available at [training.play-with-docker.com][19].
|
||||
|
||||
In case you missed it, Marcos and Jonathan presented PWD during the last DockerCon Moby Cool Hack session. Watch the video below for a deep dive into the infrastructure and roadmaps.
|
||||
|
||||
|
||||
Over the past few months, the Docker team has been working closely with Marcos, Jonathan and other active members of the Docker community to add new features to the project and Docker labs to the training section.
|
||||
|
||||
### PWD: the Playground
|
||||
|
||||
Here is a quick recap of what’s new with the Docker playground:
|
||||
|
||||
##### 1\. PWD Docker Machine driver and SSH
|
||||
|
||||
As PWD success grew, the community started to ask if they could use PWD to run their own Docker workshops and trainings. So one of the first improvements made to the project was the creation of [PWD Docker machine driver][20], which allows users to create and manage their PWD hosts easily through their favorite terminal including the option to use ssh related commands. Here is how it works:
|
||||
|
||||
![Play With Docker](https://i2.wp.com/blog.docker.com/wp-content/uploads/ssh.gif?zoom=1.5625&resize=710%2C446&ssl=1)
|
||||
|
||||
##### 2\. Adding support for file upload
|
||||
|
||||
Another cool feature brought to you by Marcos and Jonathan is the ability to upload your Dockerfile directly into your PWD windows with a simple drag and drop of your file in your PWD instance.
|
||||
|
||||
![](https://i0.wp.com/blog.docker.com/wp-content/uploads/pwd_upload-1.gif?zoom=1.5625&resize=710%2C406&ssl=1)
|
||||
|
||||
##### 3\. Templated session
|
||||
|
||||
In addition to file upload, PWD also has a feature which lets you spin up a 5 nodes swarm in a matter of seconds using predefined templates.
|
||||
|
||||
#####
|
||||
![Play with Docker](https://i1.wp.com/blog.docker.com/wp-content/uploads/templated-session-1.gif?zoom=1.5625&resize=710%2C412&ssl=1)
|
||||
|
||||
##### 4\. Showcasing your applications with Docker in a single click
|
||||
|
||||
Another cool feature that comes with PWD is its embeddable button that you can use in your sites to set up a PWD environment and deploy a compose stack right away and a [chrome extension][21] that adds the “Try in PWD” button to the most popular images in DockerHub. Here’s a short demo of the extension in action:
|
||||
|
||||
![Play with Docker](https://lh5.googleusercontent.com/FqIHfES8KdNCY7YT9fZb5DbL7WYq6Qwb30RgubXix2x2ImJkaHrsEBZbb4rAxilhxgNmu56cQWZHiAbft3ox_T7UXn5oQRtRuxjrFhqRSiSXwFRJcLq6cWiAyg-pFddiJIVs0rY)
|
||||
|
||||
### PWD: the Training Site
|
||||
|
||||
A number of new labs are available on [training.play-with-docker.com][22]. Some notable highlights include two labs that were originally hands-on labs from DockerCon in Austin, and a couple that highlight new features that are stable in Docker 17.06CE:
|
||||
|
||||
* [Docker Networking Hands-on Lab][1]
|
||||
|
||||
* [Docker Orchstration Hands-on Lab][2]
|
||||
|
||||
* [Multi-stage builds][3]
|
||||
|
||||
* [Docker swarm config files][4]
|
||||
|
||||
All in all, there are now 36 labs, with more being added all the time. If you want to contribute a lab, check out the [GitHub repo][23] and get started.
|
||||
|
||||
### PWD: the Use Cases
|
||||
|
||||
With the traffic to the site and the feedback we’ve received, it’s fair to say that PWD has a lot of traction right now. Here are some of the most common use-cases:
|
||||
|
||||
* Try new features fast as it’s updated with the latest dev versions.
|
||||
|
||||
* Set up clusters in no-time and launch replicated services.
|
||||
|
||||
* Learn through it’s interactive tutorials: [training.play-with-docker.com][5].
|
||||
|
||||
* Give presentations at conferences and meetups.
|
||||
|
||||
* Allow to run advanced workshops that’d usually require complex setups, such as Jérôme’s [advanced Docker Orchestration workshop][6]
|
||||
|
||||
* Collaborate with community members to diagnose and detect issues.
|
||||
|
||||
Get involved with PWD:
|
||||
|
||||
* Contribute to [PWD by submitting PRs][7]
|
||||
|
||||
* Contribute to the [PWD training site][8]
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
作者简介;
|
||||
|
||||
Victor is the Sr. Community Marketing Manager at Docker, Inc. He likes fine wines, chess and soccer in no particular order. Victor tweets at @vcoisne.
|
||||
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://blog.docker.com/2017/07/best-way-learn-docker-free-play-docker-pwd/
|
||||
|
||||
作者:[Victor ][a]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]:https://blog.docker.com/author/victor_c/
|
||||
[1]:http://training.play-with-docker.com/docker-networking-hol/
|
||||
[2]:http://training.play-with-docker.com/orchestration-hol/
|
||||
[3]:http://training.play-with-docker.com/multi-stage/
|
||||
[4]:http://training.play-with-docker.com/swarm-config/
|
||||
[5]:http://training.play-with-docker.com/
|
||||
[6]:https://github.com/docker/labs/tree/master/Docker-Orchestration
|
||||
[7]:https://github.com/play-with-docker/
|
||||
[8]:https://github.com/play-with-docker/training
|
||||
[9]:https://blog.docker.com/author/victor_c/
|
||||
[10]:https://blog.docker.com/tag/docker-labs/
|
||||
[11]:https://blog.docker.com/tag/docker-training/
|
||||
[12]:https://blog.docker.com/tag/docker-workshops/
|
||||
[13]:https://blog.docker.com/tag/play-with-docker/
|
||||
[14]:https://blog.docker.com/tag/pwd/
|
||||
[15]:https://www.twitter.com/marcosnils
|
||||
[16]:https://www.twitter.com/xetorthio
|
||||
[17]:http://play-with-docker.com/
|
||||
[18]:https://docs.docker.com/engine/swarm/
|
||||
[19]:http://training.play-with-docker.com/
|
||||
[20]:https://github.com/play-with-docker/docker-machine-driver-pwd/releases/tag/v0.0.5
|
||||
[21]:https://chrome.google.com/webstore/detail/play-with-docker/kibbhpioncdhmamhflnnmfonadknnoan
|
||||
[22]:http://training.play-with-docker.com/
|
||||
[23]:https://github.com/play-with-docker/play-with-docker.github.io
|
@ -0,0 +1,118 @@
|
||||
免费学习docker的最佳方法:PLAY-WITH-DOCKER(PWD)
|
||||
============================================================
|
||||
|
||||
去年在柏林的分布式系统峰会上,Docker的负责人[ Marcos Nils][15] 和[ Jonathan Leibiusky][16]宣称已经开始研究浏览器内置docker的方案,帮助人们学习Docker。 几天后,[Play-with-docker][17](PWD)就诞生了。
|
||||
|
||||
PWD像是一个Docker游乐场,用户在几秒钟内就可以运行Docker命令。 还可以在浏览器中安装免费的Alpine Linux虚拟机的,然后在虚拟机里面构建和运行Docker容器,甚至使用[ Docker 集群模式][18]创建集群。 有了Docker-in-Docker(DinD)引擎,甚至可以体验到多个虚拟机/个人电脑的效果。 除了Docker游乐场外,PWD还包括一个培训站点[training.play-with-docker.com][19],该站点提供大量的难度各异的Docker实验和测验。
|
||||
|
||||
如果你错过了峰会,Marcos和Jonathan在最后一个DockerCon Moby Cool Hack会议中提供了PWD。 观看下面的视频,深入了解基础结构和路线图。
|
||||
|
||||
在过去几个月里,Docker团队与Marcos,Jonathan,还有Docker社区的其他活跃成员展开了密切合作,为项目添加了新功能,为培训部分增加了Docker实验。
|
||||
|
||||
### PWD: 游乐场
|
||||
|
||||
以下快速的概括了游乐场的新功能:
|
||||
|
||||
##### 1\. PWD Docker机器驱动和SSH
|
||||
|
||||
随着PWD成功的成长,社区开始问他们是否可以使用PWD来运行自己的Docker研讨会和培训。 因此,对项目进行的第一次改进之一就是创建[PWD Docker机器驱动][20],从而用户可以通过自己喜爱的终端轻松创建管理PWD主机,包括使用ssh相关命令的选项。 下面是它的工作原理:
|
||||
|
||||
![Play With Docker](https://i2.wp.com/blog.docker.com/wp-content/uploads/ssh.gif?zoom=1.5625&resize=710%2C446&ssl=1)
|
||||
|
||||
##### 2\. 支持文件上传
|
||||
|
||||
Marcos和Jonathan还带来了另一个炫酷的功能就是可以在PWD实例中通过拖放文件的方式将Dockerfile直接上传到PWD窗口。
|
||||
|
||||
![](https://i0.wp.com/blog.docker.com/wp-content/uploads/pwd_upload-1.gif?zoom=1.5625&resize=710%2C406&ssl=1)
|
||||
|
||||
##### 3\. 模板会话
|
||||
|
||||
除了文件上传之外,PWD还有一个功能,可以使用预定义的模板在几秒钟内启动5个节点的群集。
|
||||
|
||||
#####
|
||||
![Play with Docker](https://i1.wp.com/blog.docker.com/wp-content/uploads/templated-session-1.gif?zoom=1.5625&resize=710%2C412&ssl=1)
|
||||
|
||||
##### 4\. 一键使用Docker展示你的应用程序
|
||||
|
||||
PWD附带的另一个很酷的功能是它的嵌入式按钮,你可以在你的站点中使用它来设置PWD环境,还可以快速部署一个构建好的堆栈,另外还有一个[chrome 扩展][21] ,可以将“Try in PWD”按钮添加DockerHub最流行的镜像中。 以下是扩展程序的一个简短演示:
|
||||
|
||||
![Play with Docker](https://lh5.googleusercontent.com/FqIHfES8KdNCY7YT9fZb5DbL7WYq6Qwb30RgubXix2x2ImJkaHrsEBZbb4rAxilhxgNmu56cQWZHiAbft3ox_T7UXn5oQRtRuxjrFhqRSiSXwFRJcLq6cWiAyg-pFddiJIVs0rY)
|
||||
|
||||
### PWD: 培训站点
|
||||
|
||||
[training.play-with-docker.com][22]站点提供了大量新的实验。有一些值得注意的两点,包括两个来源于Austind DockerCon中的可以动手实践的实验,还有两个在Docker 17.06CE版本中亮眼的新功能
|
||||
|
||||
* [可以动手实践的Docker网络实验][1]
|
||||
|
||||
* [可以动手实践的Docker编排实验][2]
|
||||
|
||||
* [多阶段构建][3]
|
||||
|
||||
* [Docker群组配置文件][4]
|
||||
|
||||
总而言之,现在有36个实验,而且一直在增加。 如果你想贡献实验,请查看[GitHub 仓库][23]然后开始。
|
||||
|
||||
### PWD: 使用情况
|
||||
|
||||
根据网站运行时我们收到的反馈,很可观的说,PWD现在有很大的牵引力。下面是一些最常见的反馈情况:
|
||||
|
||||
* 紧跟最新开发版本,尝试新功能。
|
||||
|
||||
* 快速建立集群并启动复制服务。
|
||||
|
||||
* 了解互动教程: [training.play-with-docker.com][5]。
|
||||
|
||||
* 在会议和集会上做演讲。
|
||||
|
||||
* 展开需要复杂配置的高级研讨会,例如 Jérôme’的 [先进的 Docker 编排研讨会][6]。
|
||||
|
||||
* 和社区成员写作诊断问题检测问题。
|
||||
|
||||
参与 PWD:
|
||||
|
||||
* 通过[向PWD提交PR][7]做贡献
|
||||
|
||||
* 向 [PWD 培训站点][8]贡献
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
作者简介:
|
||||
|
||||
Victor是Docker, Inc. 的高级社区营销经理。他喜欢优质的葡萄酒,象棋和足球,三三项爱好部分先后顺序。 Victor 的tweet:@vcoisne推特。
|
||||
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://blog.docker.com/2017/07/best-way-learn-docker-free-play-docker-pwd/
|
||||
|
||||
作者:[Victor ][a]
|
||||
译者:[Flowsnow](https://github.com/Flowsnow)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]:https://blog.docker.com/author/victor_c/
|
||||
[1]:http://training.play-with-docker.com/docker-networking-hol/
|
||||
[2]:http://training.play-with-docker.com/orchestration-hol/
|
||||
[3]:http://training.play-with-docker.com/multi-stage/
|
||||
[4]:http://training.play-with-docker.com/swarm-config/
|
||||
[5]:http://training.play-with-docker.com/
|
||||
[6]:https://github.com/docker/labs/tree/master/Docker-Orchestration
|
||||
[7]:https://github.com/play-with-docker/
|
||||
[8]:https://github.com/play-with-docker/training
|
||||
[9]:https://blog.docker.com/author/victor_c/
|
||||
[10]:https://blog.docker.com/tag/docker-labs/
|
||||
[11]:https://blog.docker.com/tag/docker-training/
|
||||
[12]:https://blog.docker.com/tag/docker-workshops/
|
||||
[13]:https://blog.docker.com/tag/play-with-docker/
|
||||
[14]:https://blog.docker.com/tag/pwd/
|
||||
[15]:https://www.twitter.com/marcosnils
|
||||
[16]:https://www.twitter.com/xetorthio
|
||||
[17]:http://play-with-docker.com/
|
||||
[18]:https://docs.docker.com/engine/swarm/
|
||||
[19]:http://training.play-with-docker.com/
|
||||
[20]:https://github.com/play-with-docker/docker-machine-driver-pwd/releases/tag/v0.0.5
|
||||
[21]:https://chrome.google.com/webstore/detail/play-with-docker/kibbhpioncdhmamhflnnmfonadknnoan
|
||||
[22]:http://training.play-with-docker.com/
|
||||
[23]:https://github.com/play-with-docker/play-with-docker.github.io
|
Loading…
Reference in New Issue
Block a user