MindsDB provides an extension for Docker Desktop that facilitates running MindsDB on Docker Desktop.

Prerequisites

Before proceeding, ensure you have installed Docker Desktop, following the official Docker Desktop documentation.

Setup

This setup of MindsDB uses the mindsdb/mindsdb:latest Docker image, which is a lightweight Docker image of MindsDB that comes with these integrations preloaded.

Follow the steps to set up MindsDB in Docker Desktop.

Install the MindsDB Docker Desktop Extension

If you are a Windows user, ensure that you have enabled Developer Mode under settings before installing the extension.

It is not necessary to keep Developer Mode enabled to use the extension. Once the extension is installed, you can disable Developer Mode if you wish.

Go to the Extensions page in Docker Desktop and search for MindsDB.

Install the MindsDB extension.

The first time the extension is installed, it will run the latest version of MindsDB. Moving forward, it’s advisable to regularly update the MindsDB image used by the extension to ensure access to the latest features and improvements.

As mentioned previously, the extension uses the mindsdb/mindsdb:latest Docker image. To update the image, follow these steps:

  1. Navigate to the ‘Images’ tab in Docker Desktop.
  2. Search or locate the mindsdb/mindsdb:latest image.
  3. Click on the three dots on the right side of the image and click ‘Pull’. If the image is already up to date, you will see a message stating so and you can skip the next step.
  4. Wait for the image to be pulled and restart Docker Desktop.

Access MindsDB inside Docker Desktop.

Install dependencies

In the MindsDB editor, go to Settings and Manage Integrations.

Select integrations you want to use and click on Install.

View logs

In order to view the logs generated by MindsDB when running the extension, follow these steps:

  1. Navigate to the ‘Containers’ tab in Docker Desktop.
  2. Search or locate the multi-container application running the MindsDB extension. This can be done by searching for ‘mindsdb’.

If you do not see the application listed here, navigate to the ‘Extensions’ tag in Settings and ensure that the ‘Show Docker Extensions system containers’ option is enabled.

  1. Click on the container named ‘mindsdb_service’. This will direct you to the container running MindsDB.

  1. View the logs in the ‘Logs’ tab.