Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What you described is actually the default way the Docker provider works, which aligns with the best-practice of how Docker is used: you can launch a set of single-process containers that don't support SSH, but have volumes mounted, links, etc. Then you use `vagrant docker-run` to launch one-off containers with bash, or run scripts, etc. The first two videos and examples show this.

To be clear: see the first example Vagrantfile that is in the blog post. Then read down further and see `docker-run`. You can use that to launch another container to get a bash prompt. This is _exactly_ the workflow you describe.

We built exactly for this. :)

We also support SSH-based containers, but you can see that it is explicitly opt-in (you must set "has_ssh" to "true"), also showing that it really isn't the normal way things are done.

Vagrant is about flexibility, and we surface both use-cases.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: