Vagrant - Docker供应商与Docker供应商 [英] Vagrant - Docker provider vs. docker provisioner

查看:152
本文介绍了Vagrant - Docker供应商与Docker供应商的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



供应商 - 在码头安装,运行,拉拽集装箱的过程中,有一些事情。



提供者 - 是运行虚拟机的东西。即VBox运行ubuntu操作系统映像。



Docker如何提供?它直接运行一些码头图像?如果我在windows上有一些隐藏的使用boot2docker的权利?我将何时使用每一个?

解决方案

Docker供应商有助于准备环境:构建和拉取图像,运行容器,如果您需要多个集装箱为您的流动机运行。
Docker提供商正在docker容器中运行vagrant机器(而不是像其他提供商那样使用VM /云端)。



在Linux上,vagrant使用的是Docker 。在Windows和MacOS X上,boot2docker用于docker供应商和提供商。默认情况下,所有vagrant docker机器都使用相同的boot2docker实例 - 但是您可以配置要使用哪个虚拟机(不需要是boot2docker - 任何具有docker的Linux都可以)。


Can anybody explain to me the difference?

Provisioner - is something doing provision - in docker installing, running, pulling containers.

Provider - is something that runs the VM. I.e. VBox runs the ubuntu OS image.

How can be Docker a provider? It runs directly some docker image? If I'm on windows there must some hidden usage of boot2docker right? When will I use each one?

解决方案

Docker provisioner help to prepare environment: build and pull images, run containers if you need multiple containers running for your vagrant machine. Docker provider is running vagrant machine in docker container (instead of VM/cloud as other providers do).

On Linux vagrant is using docker from the host OS. On Windows and MacOS X boot2docker is used for both docker provisioner and provider. By default all vagrant docker machines are using the same boot2docker instance - but you could configure which VM to use (It does not need to be boot2docker - any Linux with docker is ok).

这篇关于Vagrant - Docker供应商与Docker供应商的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆