You've successfully subscribed to ditData Blog
Great! Next, complete checkout for full access to ditData Blog
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.
Success! Your billing info is updated.
Billing info update failed.

How to Install Metabase on Docker

Ikenna Paschal

Quick introduction:

Metabase is a data visualization tool for the ordinary person. Metabase was made to be easy to use and master for everyone in your organization regardless of experience. This tutorial assumes you want to deploy Metabase on the cloud not locally.

In this short tutorial, I will go over how to deploy the official Metabase docker image to a Linux VM. The folks at have a unique docker image for Metabase, you can use theirs instead if you wish.

By the way, you don't need technical knowledge to follow this tutorial.


Before we begin, there a few things you might have to do:

  1. Create and SSH into an instance, you can use GCP, AWS, or Azure. A t2.micro (Amazon free tier eligible) will most likely serve you well if you are a small team.
  2. Install docker:
sudo apt update
sudo apt install 
sudo systemctl enable --now docker 
sudo usermod -aG docker $USER && newgrp docker
This installs docker on your instance

(replace $USER with your username)

I wouldn't go over the docker vs directly on VM argument here. You can find articles online if you would like to compare.

Install and Run Metabase Docker Container

To install Metabase using the official image from docker hub, run the command

sudo docker run -d -p 3000:3000 --name metabase metabase/metabase

This simple command will run the docker container and make it available on the internet.

To persist memory even after container restarts, use the command below instead

sudo docker run -d -p 3000:3000 \
-v ~/metabase-data:/metabase-data \
-e "MB_DB_FILE=/metabase-data/metabase.db" \
--name metabase metabase/metabase
Mount the volume to persist information between container stops

Finishing up:

  • Open the firewall, make sure to open the firewall to allow traffic from the internet on port 3000.

Install Metabase in one click:

Alternatively, you can use Cloudlyn, an automation platform for hosting docker to deploy Metabase for free in just one click. Installation takes 1 minute and you are set. No need to manage infrastructures. Click here to get started.

Ikenna Paschal

I build things