Metabase installation on AWS EC2

This post demonstrates the process of installation of Metabase Business Intelligence Tool on an AWS EC2 instance.

Metabase is an open source Business Intelligence Tool used to query databases for individuals and companies with or without knowledge of SQL.

‘Metabase is a simple and powerful analytics tool which lets anyone learn and make decisions from their company’s data. No technical knowledge required!’

Installation of Metabase in an AWS EC2 instance

  1. Spin up an AWS EC2 instance with the following specifications
    • Ubuntu 18.04 Server LTS OS
    • 2 vCPUs, 4 GB RAM (t2.medium)
    • In Security policy,
      • Open SSH Port 22 to be accessed only from your local machine/ or from anywhere.
      • Open Custom TCP Port 3000 to be accessed from any IP (
  2. In the terminal, Update your Ubuntu repositories
sudo apt update
  1. We will be installing the Metabase software by the Docker container approach.

  2. First, we need to install Docker. Run the following commands to install Docker

sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \

curl -fsSL | sudo apt-key add -

sudo add-apt-repository \
   "deb [arch=amd64] \
   $(lsb_release -cs) \

 sudo apt-get update
 sudo apt-get install docker-ce docker-ce-cli
  1. Verify that docker had installed properly.
sudo docker run hello-world

You should get the following output. If so, then docker is installed properly.

  1. Run the following one-liner docker command for installating Metabase
sudo docker run -d -p 3000:3000 --name metabase metabase/metabase
  1. Start Metabase in your browser by putting in the URL as
    • http://AWS-EC2-PublicIP:3000 if you are installing in an AWS EC2 instance
      • E.g.
    • NOTE: It takes some time for the software to run for the first time. Sometimes it can takes minutes! Please wait till you get the following landing page on your browser.
  1. Click on ‘Getting Started’, enter your details and a password. Submitting this will take you to the main Dashboard page of Metabase.
    You are now ready to explore Metabase!

NOTE: If you stop your EC2 instance and then restart it, the Metabase docker container does not start automatically.

a. To list the status of your docker containers, whether it has started or stopped, type:

sudo docker container ls -a

b. To start the Metabase docker container after a EC2 instance restart, type:

sudo docker container start metabase

Happy exploring this great open source BI tool!