Installation Guide: Docker

Download / Installation-Guide /Docker

Running the Metatron Docker image

We provide docker image for easy-installation of Metatron Discovery and the druid customized engine. To run this docker image, you only need linux command window! For now, we support simple download for single mode of druid only. Please contact us if you specially need the distributed version.

Prerequisites

Metatron Docker repository

https://hub.docker.com/r/metatronapp/discovery/tags/

Execute the docker image

To run the docker image in quickstart mode(single-machine, non-clustered), execute the following command to run.

    docker run -i -d --rm -p ${HOST_DISCOVERY_PORT:8180}:8180 \ 
                    --name metatron-discovery metatronapp/discovery:latest

To access the logs and service of druid or mariadb in docker container, expose the service’s ports and log path.

          -p ${HOST_BROKER_PORT:8081}:8081
          -p ${HOST_HISTORICAL_PORT:8083}:8083
          -p ${HOST_OVERLORD_PORT:8090}:8090
          -p ${HOST_MIDDLEMANAGER_PORT:8091}:8091
          -v ${HOST_DRUID_LOGS_PATH:./logs/druid}:/usr/local/druid/logs
          -v ${HOST_DISCOVERY_LOGS_PATH:./logs/discovery}:/usr/local/metatron/logs

To enter the container, if you want:

    docker exec -it metatron-discovery /bin/bash

To stop the container, if you want:

    docker stop metatron-discovery