Search code examples
dockervagrantvirtual-machinedevelopment-environment

Vagrant or Docker for environment development


in our compagny we want to prepare an environment development for our internships so that they don't waste time to install all the tools that they're going to use (Wamp server, IDE's, different navigators, java ...).

We also want these development envrionments to be instances so that for example we can access wamp services in the virtual machine from the navigator that runs on the real os of the machine.

What's the best choice to do this Vagrant or Docker? How can we prepare this solution? A tutorial link will be very helpfull, Thanks.


Solution

  • I would use both

    Our host is Windows, we use vagrant to up a VM and in that VM we install docker then we can run docker containers therein, mapping ports from host to VM then VM to container, allowing container access from host

    In my GitHub repo danday74 I have a repo called vagrant-docker-skelly ... Ignore everything else in that repo except the vagrant file ... Use this vagrantfile to up a VM with docker installed

    All the best