Image

Import and Export Databases into a Container

A common task when developing a Drupal site is loading the database into your local development environment. When working with non-Docker local development environments, command line tools or a graphical application are used to load the database dump. These methods also work for Docker with a bit of container configuration. With Docker, you can include all the tooling in containers, reducing the need for utilities on the host OS.

In this tutorial, we'll:

  • Outline the challenges for loading a database into a container
  • Identify the methods by which a database can be loaded into a container