Almost any reasonable deploy process now requires a docker box. Docker is awesome but I’d rather have an isolated environment for my containers.
Here is where vagrant’s docker priovider comes in to play. Vagrant guys did a great job explaining abstraction here.
As always things are not so easy when you actually try to implement Vagrant Docker Proxy/Host on your own.
After a day of googling errors caused by vagrant upI figured that Vagrant is too green for automating Docker installation.
Another issue came up after I failed to install Docker on linux box.
Even if you get Docker instaled you instantly get a permission error.
All issues above fixed with custom shell.sh provision script:
curl -sSL https://get.docker.com/ubuntu/ | sudo sh && will take care of installing correct binaries.
Here’s working Vagrantfile for host machine:
Then you can reference other containers in main Vagrantfile