
See the documentation here: 'Bake and Share' a custom Drupal VM Docker image. via Google Drive, Dropbox, etc.), then each team member can load in the image with composer docker-load-image. Then, save the image with composer docker-save-image, share it with team members (e.g. using Varnish, Solr, and PostgreSQL), you can configure Drupal VM using a config.yml file as usual, but instead of requiring each team member to provision a Drupal VM instance on their own, one team member can composer docker-bake a Docker container.

For teams with particular requirements (e.g.

The second way you can use Drupal VM with Docker is to use some built-in functionality to build a completely custom Docker image. Use Drupal VM to 'bake and share' a custom image Want a real-world example? See the Site for Drupal VM Prod Deployment Demonstrations codebase on GitHub-it's using this technique for the local environment. You can even customize the default image slightly using a Dockerfile and changing one line in the Docker Compose file see Add a Dockerfile for customization. If you're using a Mac, there's an additional step required to make the container's IP address usable you currently have to create an alias for the IP address you use for the container with the command sudo ifconfig lo0 alias 192.168.88.88/24 (where the IP address is the one you have chosen in your project's Docker Compose file). Add an entry to your computer's hosts file.Customize the Docker Compose file for your project.Copy Drupal VM's example Docker Compose file into your project's root directory.

Using it with an existing project is easy: The simplest option-if you don't need much customization, but rather need a quick LAMP stack running with all Drupal VM's defaults-is to use the official Drupal VM docker image.
#DRUPAL VM WINDOWS#
The main benefit of using Docker instead of Vagrant (at least at this point) is speed-not only is provisioning slightly faster (or nearly instantaneous if using the Docker Hub image), but performance on Windows and Linux is decidedly better than with VirtualBox.Īnother major benefit? The Drupal VM Docker image is only ~250 MB! If you use VirtualBox, box files are at least twice that size getting started with Drupal VM using Docker is even faster than Vagrant + VirtualBox! Use the Docker Hub image

