New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker as a Vagrant provider #404
Comments
I'm going to work on this. |
Playing with it as well. @destructuring do you have something up somewhere that I could play with? |
Hi @destructuring if you need help with this, I'd be glad to help. Getting it work with multi-vm and provisioners working. I'll start playing with it. |
Since there are a lot of concurrent efforts to do this, I created a placeholder pull request to coordinate. Please check out "contributing" notes in #440. |
Notes of today's brainstorming session: On Fri, Apr 19, 2013 at 5:35 PM, Solomon Hykes notifications@github.comwrote:
|
Hey guys, Since I was also one of those trying to make this happen I got some thoughts to share. Please keep in mind that I wrote those notes after 2 or 3 days playing with Docker and it was a while ago, so there's a huge potential that be some stuff might not make sense for advanced docker users out there ;-) I'm also behind the "pure lxc" provider for vagrant so I might be able to contribute with the Docker provider implementation itself in case you guys need an extra pair of hands ;) I actually don't think a Docker provider would be a "competitor" to the pure lxc driver since my goal is to have it as a replacement to VirtualBox for Linux users, what you guys have done here with Docker is actually something a lot bigger. |
Thanks Fabio! I'm preparing detailed answers to the questions in your notes. On Fri, Apr 19, 2013 at 7:51 PM, Fabio Rehm notifications@github.com
|
(pasting my notes as a comment here as asked by @shykes on the gist) To kick off the provider would be nice to have the big picture of out how Vagrant features / commands map to docker "stuff". These are thoughts about how the integration might look like under the hood:
|
On Thu, Apr 25, 2013 at 3:37 PM, Fabio Rehm notifications@github.comwrote:
Thanks Fabio!
You can replace localhost with any public IP of the host.
|
@shykes just saw your reply today. re port forwarding on vagrant / vagrant-lxc, vagrant uses VBox port forwarding and vagrant-lxc only supports localhost redirects with |
Would be an awesome feature! |
is there a preview somewhere for this feature so we can test? |
Check out destructuring/vagrant-shell, just merged a docker demo into the On Fri, Jun 21, 2013 at 6:59 AM, Deni Bertovic notifications@github.comwrote:
|
Is this still being worked on? From what I gather, vagrant-shell looks like a way to let any set of shell scripts implement the vagrant provisioning interface. It does not have specifics to allow Vagrant to use Docker's LXCs as the containers. https://github.com/philspitler/vagrant-docker is interesting but I note no work done in the last couple of months. Martin. |
Looks at the demos in branch feature/destructuring/demos in vagrant-shell for a docker script/demo Sent from my mind On Jul 14, 2013, at 10:49 AM, Martin Cleaver notifications@github.com wrote:
|
I would still like to see a dedicated provider. I know there is interest in one, but to my knowledge nobody is actively working on it. Consider this an invitation. I'm closing this issue, please direct future discussions to the mailing list. |
@mrjcleaver I actually forked the repo for vagrant-docker from @destructuring because I was interested in the prospect of a Docker provider for Vagrant. I noticed the documentation seem to have been copied from the AWS EC2 Provider, so I only contributed that documentation pull request. That said, I am still very interested in the possibilities with this. While I don't have a ton of time to dedicate to a project of this magnitude at the moment, I would love to know if anyone starts working on this and will help in any way I can. |
I'm actually planning to spike on a docker provisioner for vagrant / packer when I have the time ;) |
Do you mean something like this? Or am I misunderstanding something (this is totally possible as it's pretty late here)? |
@philspitler and to be clear, this issue is about this :) |
Well, I glad this is coming together... but I'm clear as to what :) Maybe someone could spell it out for me? Are there two separate (maybe both valid?) goals here? Thanks & please excuse my ignorance! Martin |
Hey there! What's the status on this? Thanks a lot! |
AFAIK there is no one actively working on Docker as a Vagrant provider apart from @destructuring's work on vagrant-shell but I've personally started playing with Docker as a provisioner, so instead on using vagrant to control docker containers, I'm using docker to provision Vagrant VMs with multiple containers. If you are interested on that you can check out the Vocker and Ventriloquist projects On a side note, a future version of Vagrant (hopefuly the next one :) will also support Docker as a first class provisioner and I'll be submiting a PR to Vagrant's core with Vocker's code after some more testing with the latest release. I've been keeping an eye on things related to this and as far as I can tell that's it about Vagrant + Docker :) |
Nice! Thanks for your reply. I've seen Ventriloquist lately, but didn't have a look at it yet. What I'd like to see is a functionality for Vagrant which would use a single VM for multiple projects. Those projects would run as separate docker containers inside this VM. In other words; every project would have a Vagrantfile which would provision a VM with a configured base box and then use Docker to actually set up the project using a docker/lxc container. Keep up the nice work! :) |
Vocker looks interesting. Would it also run a Dockerfile from inside a project's directory? |
Not yet but it is planned :) |
Ok folks, apart from docker provisioners (ventriloquist / vocker), I've just open sourced an experimental provider too: https://github.com/fgrehm/docker-provider. It has quite a few limitations which I'm pretty sure will be around unless things changes on Docker itself and TBH I think that supporting things like changing volumes / bind mounts and exposed ports after the container has been created is out of scope for docker. Anyways, I hope someone finds it useful :P |
Thanks @fgrehm that is something I've been wanting to get my hands on! 👍 |
[19.03 backport] revert controller: Check if IPTables is enabled for arrangeUserFilterRule ENGCORE-1114
There has been interest in using Docker as a provider to run Vagrant boxes - eg. as a backend for "vagrant up", "vagrant ssh", "vagrant bundle"...
This might require a little bit of creative hacking, since docker containers don't map perfectly to regular servers (eg. you can't run multiple commands on them, etc.).
But it would be really cool to drop an existing Vagrant project and get fully functional docker images as a result!
The text was updated successfully, but these errors were encountered: