From 896cde9158e60dac1d36e1cb8c9289bf297fb074 Mon Sep 17 00:00:00 2001 From: Parami Gunasekara Date: Thu, 19 Sep 2019 17:38:46 -0400 Subject: [PATCH] Fixes site-install error. Error: `In SiteInstallCommands.php line 367: Failed to drop or create the database:` This is due because the `systemctl start mysql` command failed due to missing volume. Fix was to add the missing volume to the command. Also, resolves #1856 --- docs/other/docker.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/other/docker.md b/docs/other/docker.md index ad928e9f0..5b3027d55 100644 --- a/docs/other/docker.md +++ b/docs/other/docker.md @@ -27,7 +27,7 @@ You can also add other subdomains if you're using other built-in services, e.g. If you just want a quick, easy Drupal site for testing, you can run an instance of Drupal VM and install Drupal inside using the provided script. - 1. Run an instance of Drupal VM: `docker run -d -p 80:80 -p 443:443 --name=drupalvm --privileged geerlingguy/drupal-vm` + 1. Run an instance of Drupal VM: `docker run -d -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 80:80 -p 443:443 --name=drupalvm --privileged geerlingguy/drupal-vm` 2. Install Drupal on this instance: `docker exec drupalvm install-drupal` (you can choose a version using `install-drupal [version]`, using versions like `8.x-dev` or `7.x-dev`). You should be able to access the Drupal site at `http://localhost`. If you need to share a host directory into the VM, you can do so by adding another `-v` parameter, like `-v /path/on/host:/path/in/container.