-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
enhancements - native docker provider for mac users #7240
Comments
If this is possible, no vagrant boxes required any more.
"Faster and more reliable: no more VirtualBox! The Docker engine is running in an Alpine Linux distribution on top of an xhyve Virtual Machine on Mac OS X or on a Hyper-V VM on Windows, and that VM is managed by the Docker application. You don’t need docker-machine to run Docker for Mac and Windows." |
Hi there, Thank you for opening an issue. This is closely related to #6187. In general, we prefer to see new technologies developed as plugins first, then, as they gain maturity and adoption, we can address moving them into Vagrant core. Thanks! |
I'd just like drop a friendly note to document that this is not about supporting xhyve per #6187, but is actually about supporting docker using the now-native implementations on windows and os x. These native implementations do not use boot2docker anymore and instead handle the starting and management of a docker environment directly, which vagrant should interact with via the standard docker mechanisms. specifically vagrant should NOT try to start any VMs when docker is requested under these systems. |
thanks to add comments on this idea, @diddledan We need develop a new vagrant driver to support xhyve first, without this plug-in, we can't go further. |
Hi @diddledan The next version of Vagrant allows the user to opt out of the host-VM using an envvar; this will be a good gap that will allow users to use the native tools while they are still in beta. |
@sethvargo does this feature exist yet, e.g. in a beta? |
Thanks, @sethvargo Any sample |
Plus one for this guys. Native support for Docker for Mac (and Windows) is now out a beta. |
It already exists and was in 1.8.4 if I recall correctly. |
Still doesn't work with native docker for mac. Used the sample and copy from https://www.vagrantup.com/docs/docker/commands.html
|
Did with |
You need to set force_host_vm to false, as Seth mentioned. Try:
|
Thanks, I can start with docker provider with native docker for mac. I am fine to close this ticket now.
|
i think
which may lead to believe vagrant by default forces. it's a bit illogical to say "force=false", the better option would be to make boolean variable:
ps:
but vagrant connects to:
it should connect to is there known workaround to tell the hostname:port to vagrant? |
ok, found answer from here:
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Vagrant version
Run
vagrant -v
to show the version. If you are not running the latest versionof Vagrant, please upgrade before submitting an issue.
latest
Host operating system
This is the operating system that you run locally.
mac osx 10.11.3
Guest operating system
This is the operating system you run in the virtual machine.
need support xhyve ( a lightweight OS X virtualization solution)
https://github.com/mist64/xhyve
Vagrantfile
Debug output
Expected behavior
What should have happened?
native docker use Xhyve, no need boot2docker any more.
Actual behavior
What actually happened?
still go with boot2docker
Steps to reproduce
References
Are there any other GitHub issues (open or closed) that should be linked here?
For example:
The text was updated successfully, but these errors were encountered: