[英]Vagrat Box vs docker?
Vagrant Box: 无业游民的箱子:
Boxes are the package format for Vagrant environments. 框是Vagrant环境的软件包格式。 A box can be used by anyone on any platform that Vagrant supports to bring up an identical working environment.
Vagrant支持的任何平台上的任何人都可以使用盒子来建立相同的工作环境。
Docker 码头工人
Docker is a tool that packages, provisions and runs containers independent of the OS. Docker是一种独立于OS打包,配置和运行容器的工具。 A container packages the application service or function with all of the libraries, configuration files, dependencies and other necessary parts to operate
容器将应用程序服务或功能与所有库,配置文件,依赖项和其他必要的部分打包在一起
Question : 题 :
How docker and vagrant box are different from each other? 码头工人和无家可归者盒子之间有何不同?
What freedom does they provide for the developer and production? 他们为开发人员和生产人员提供什么自由?
How Developer can make use of the Vagrant and differenciate the differences between docker and vagrant. 开发人员如何利用Vagrant并区分docker和vagrant之间的差异。
Vagrant : Vagrant is a project that helps the spawning of virtual machines. Vagrant :Vagrant是一个项目,可帮助产生虚拟机。 It started as an command line of VirtualBox, something similar to Gemfile for VM's.
它从VirtualBox的命令行开始,类似于VM的Gemfile。 You can choose the base image to start with, network, IP, share folders and put it all in a file that anyone can reuse to spawn the same configured machine.
您可以选择开始的基本映像,网络,IP,共享文件夹,并将其全部放入一个文件中,任何人都可以重复使用以生成同一配置的计算机。 Vagrant has different extensions, provisioning options and VM providers.
Vagrant具有不同的扩展,配置选项和VM提供程序。 You can run a VirtualBox, VMware and it is extensible enough to be able to create instances on EC2.
您可以运行VirtualBox,VMware,它具有足够的可扩展性,能够在EC2上创建实例。
Docker : Docker, allows to package an application with all of its dependencies into a standardized unit of software development. Docker :Docker允许将具有所有依赖关系的应用程序打包到软件开发的标准化单元中。 So, it reduces a friction between developer, QA and testing.
因此,它减少了开发人员,质量检查和测试之间的摩擦。 The idea is to share the linux kernel.
这个想法是共享Linux内核。 It dynamically change your application, adding new capabilities every single day, scaling out services to quickly changing the problem areas.
它动态地更改您的应用程序,每天增加新功能,扩展服务以快速更改问题区域。 Docker is putting itself in an excited place as the interface to PaaS be it networking, discovery and service discovery with applications not having to care about underlying infrastructure.
Docker成为PaaS的界面,无论是联网,发现还是服务发现,而应用程序不必关心基础架构,都将自己置于一个激动人心的地方。 The industry now benefits from a standardized container work-flow and an ecosystem of helpful tools, services and vibrant community around it.
现在,该行业受益于标准化的容器工作流程以及周围有用的工具,服务和充满活力的社区的生态系统。
Following are few points ease for developer and production deployments: 以下是为开发人员和生产人员部署提供便利的几点:
ACCELERATE DEVELOPERS : Your development environment is the first and foremost thing in IT. 加快开发人员:您的开发环境是IT中的首要任务。 Whatever you want, the different tools, databases, instances, networks, etc. you can easily create all these with docker using simple commands(Image creation using Dockerfile or pull from Docker Hub).
无论您想要什么,使用不同的工具,数据库,实例,网络等,都可以使用简单的命令(使用Dockerfile创建图像或从Docker Hub提取图像)通过Docker轻松创建所有这些工具。 Get 0 to 100 with docker machine within seconds and as a developer I can focus more on my application.
数秒之内可以在docker机器上获得0到100的收益,作为开发人员,我可以专注于自己的应用程序。
EMPOWER CREATIVITY : The loosely coupled architecture where every instance ie container here is completely isolated with each other. EMPOWER CREATIVITY:松散耦合的体系结构,其中每个实例(即此处的容器)完全相互隔离。 So, their is no any conflict between the tools, softwares, etc. So, the more creative way developer can utilize the system.
因此,它们在工具,软件等之间没有任何冲突。因此,开发人员可以更创造性地利用系统。
ELIMINATE ENVIRONMENT INCONSISTENCIES : Docker containers are responsible for actual running of the applications and includes the operating system, user-files and metadata. 消除环境上的不便:Docker容器负责应用程序的实际运行,并包括操作系统,用户文件和元数据。 And docker image is same across the environment so your build will go seamlessly from dev to qa, staging and production.
而且docker映像在整个环境中都是相同的,因此您的构建将从开发无缝过渡到质量保证,阶段和生产。
In production environment you must have a zero downtime along with automated deployments. 在生产环境中,停机时间必须为零,并且必须进行自动部署。 You should take care of all things as service discovery, logging and monitoring, scaling and vulnerability scanning for docker images, etc. All these things accelerate the deployment process and help you better serve the production environment.
您应该处理所有事情,例如服务发现,日志记录和监视,扩展和镜像Docker映像的漏洞扫描等。所有这些事情可以加速部署过程,并帮助您更好地为生产环境提供服务。 You don't need to login into production server for any configuration change, logging or monitoring.
您无需登录生产服务器即可进行任何配置更改,日志记录或监视。 Docker will do it for you.
Docker将为您做到。 Developers must understand that docker is a tool, it's nothing without other components.
开发人员必须了解docker是一种工具,没有其他组件就什么也不是。 But, it will definitely reduce your huge deployment from hours to minutes.
但是,它肯定可以将您的大量部署从几小时减少到几分钟。 Hope this will clear.
希望这会清除。 Thank you.
谢谢。
Docker依靠容器化,而Vagrant利用虚拟化。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.