Comments (7)
Unfortunately that is correct, which could happen upstream in either https://github.com/mitchellh/boot2docker-vagrant-box or https://github.com/steeve/boot2docker.
However, I'd be curious to know what you'd like to mount into the virtual machine. The only thing that I could come up with was bind mounts to a container?
from dvm.
@fnichol: I had the same question but your curiosity about it piqued my curiosity of another possible solution we dont know about.
We were going to use the shared filesystem to allow us to directly edit our html documents in /var/www for docker on our local OSX environments. Perhaps there is another better way?
from dvm.
This seems to be being resolved via NSF as the vagrant docs prefer:
http://docs.vagrantup.com/v2/synced-folders/nfs.html
The upstream issue in boot2docker is:
boot2docker/boot2docker#64
from dvm.
I have the same use case as @michaelfavia: being able to edit sources in /var/www (for example) in Docker, on local OS X machine.
My current solution to achieve is by not using dvm, and instead using Vagrant/Virtualbox to bring up a Docker-ready host, which will run a container, and have a sync'd folder strewn through VirtualBox (via synced folders) and Docker (via volume binding).
Having the convenience of dvm, rather than configuring my own VirtualBox machine would be handy, however.
from dvm.
Last night in a fit of frustration I tried out coreos because it included NFS support. It is a superior alternative to a handrolled vagrant file IMO. Was a breeze to setup.
I would still much prefer boot2docker (and actually stole a bit of it {dvm env} for my franken setup) and consequently dvm to support NFS but until that happens ill survive. I tried to help upstream with issue 64 but i couldnt get the boot2docker.iso to build properly. Maybe thats my next project.
from dvm.
A use case:
I'm in the process of setting up a Vagrant box for a Rails project which requires running some things that want to be on Linux, like postfix. This is a pretty straightforward use case for Vagrant. The problem is getting the provisioning right. I keep tearing down machines and re-provisioning them.
Through dvm, I get to use a Dockerfile to build an image. If I change the Dockerfile, Docker is smart about doing the least work necessary by reusing intermediate images. If I just need to scrap the container and start fresh, that's super fast in Docker.
In other words, dvm makes a better Vagrant than Vagrant.
Except for sharing files. Vagrant makes that really easy when there's one VM per project, which means I can edit my project on the host and run it on the guest.
If I could mount the source tree from my host Mac in my Vagrant box's Docker container through dvm, that would be pretty sweet.
from dvm.
After revisiting this, the two upstream projects need to support it first before dvm can benefit.
I believe the relevant links are:
Thanks for the discussion and background.
from dvm.
Related Issues (20)
- BootToDocker 0.5.2 HOT 7
- installed via brew tap, dvm up errors: 'Linux_64' is not a valid Guest OS type HOT 9
- Update documentation and `dvm check` for vmware/virtualbox support
- docker client cant connect to tcp://192.168.42.43:4243 HOT 2
- dvm up Error: Connection timeout. Retrying... HOT 1
- Is this project dead? HOT 4
- Static IP assignment leaves stray udhcpc process running in background HOT 1
- VMware Fusion link in README is dead HOT 1
- DOCKER_PORT does not seem to alter port of Vagrantfile HOT 1
- Support for Parallels? HOT 3
- Just use localhost for DOCKER_IP? HOT 3
- DVM not support VirtualBox 4.3 HOT 3
- dvm runs insecure by default HOT 1
- `dvm up` hangs on VMFusion 6, missing OS HOT 4
- DVM does't finish booting HOT 1
- docker is not working proparly after starting dvm HOT 2
- upgrade to boot2docker 1.3.1 HOT 2
- Error response from daemon: client and server don't have same version (client : 1.15, server: 1.14) HOT 7
- Chasing releases HOT 4
- Error response from daemon: client and server don't have same version HOT 35
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dvm.