Running Ozone From Docker Compose | Apache Ozone Skip to main content Apache Ozone Docs Latest Docs Docs 2.0.0 (Archived) Docs 1.4.1 (Archived)DownloadRoadmapBlog Community Communication Channels Who Uses Ozone? Report An Issue Ask a Question How to Contribute Events and Media Search Version: 2.1.1 Next 2.2.0 2.1.1 Overview Quick Start Core Concepts User Guide Administrator Guide System Internals Developer Guide Build Run Intellij Docker Compose Kubernetes Test Project This is documentation for Apache Ozone 2.1.1, which is no longer actively maintained. For up-to-date documentation, see the latest version (2.2.0). Developer Guide Run Docker ComposeVersion: 2.1.1 On this page Running Ozone From Docker Compose This guide walks you through the process of building Apache Ozone from source and running it using Docker Compose. This approach is particularly useful for development, testing, and understanding Ozone's architecture. Prerequisites​ Before you begin, ensure you have installed: Docker Engine - Latest stable version Docker Compose - Latest stable version Building and Deploying Ozone​ Step 1: Build from Source​ First, build Ozone from source following our Build with Maven guide. Step 2: Locate Docker Compose Files​ Navigate to the compose directory in your build output: cd ./hadoop-ozone/dist/target/ozone-<VERSION>/compose/ozone Step 3: Configure Your Deployment (Optional)​ You can customize your Ozone deployment by modifying the configuration parameters in the docker-compose.yaml file: Common Configurations: Located under the x-common-config section Service-Specific Settings: Found under the environment section of individual services Example configuration modification: # Example configuration modifications x-common-config: environment: OZONE-SITE.XML_ozone.scm.container.size: 1GB OZONE-SITE.XML_ozone.scm.block.size: 256MB Step 4: Launch the Cluster​ Start your Ozone cluster: docker compose up -d --scale datanode=3 This command creates a fully functional Apache Ozone cluster using the ozone-docker-runner base image, which mounts your locally compiled Ozone binaries. Container Diagram​ This image shows the containers that will be created by the docker compose up -d command when running the default Docker Compose configuration under /compose/ozone . Cluster Components​ Core Services​ Your Ozone cluster includes the following components: Storage Container Manager (SCM): Manages storage containers and block allocation Ozone Manager (OM): Handles namespace operations and metadata management S3 Gateway: Provides S3-compatible API access Recon: Monitoring and management service Datanodes: Distributed storage nodes HttpFS: HTTP-based filesystem interface Cluster Management​ Essential Commands​ Here are the key commands for managing your Ozone cluster: # Start the cluster docker compose up -d # Stop and remove all containers docker compose down # Monitor service logs docker compose logs -f [service_name] # Scale the number of datanodes docker compose up -d --scale datanode=3 # Check cluster status docker compose ps CLI Access​ Access the Ozone command-line interface from any Ozone container: # Enter the Ozone Manager container or any other container docker compose exec om bash # Run Ozone commands ozone Advanced Configurations​ The compose directory includes several specialized configurations for different use cases: ConfigurationPurposeozone-haHigh availability deployment setupozonesecureSecurity features with SSL and Kerberosozone-topologyRack-aware deployment configurationupgradeNon-rolling upgrade testing environment To explore these configurations: cd hadoop-ozone/dist/target/ozone-*-SNAPSHOT/compose/ Next Steps​ After setting up your development cluster: Explore the Ozone CLI documentation Experiment with the various compose configurations for specific use cases Edit this page Previous Intellij Next Kubernetes Prerequisites Building and Deploying Ozone Step 1: Build from Source Step 2: Locate Docker Compose Files Step 3: Configure Your Deployment (Optional) Step 4: Launch the Cluster Container Diagram Cluster Components Core Services Cluster Management Essential Commands CLI Access Advanced Configurations Next Steps Apache Software Foundation Foundation License Events Sponsorship Privacy Security Thanks Community GitHub Discussions Jira Issues Slack Mailing List YouTube Twitter Repositories Ozone Website Docker Image Docker Runner Image Copyright © 2026 The Apache Software Foundation. Licensed under the Apache License, Version 2.0. The Apache Software Foundation, Apache Ozone, Ozone, Apache, the Apache Feather, and the Apache Ozone project logo are either registered trademarks or trademarks of the Apache Software Foundation.