chungen0126 commented on code in PR #8586:
URL: https://github.com/apache/ozone/pull/8586#discussion_r2134834185


##########
hadoop-hdds/docs/content/start/StartFromDockerHub.md:
##########
@@ -25,55 +25,99 @@ weight: 10
  * AWS CLI (optional)
 {{< /requirements >}}
 
-# Ozone in a Single Container
+# Local multi-container cluster
 
-The easiest way to start up an all-in-one ozone container is to use the latest
-docker image from docker hub:
+## Obtain the Docker Compose Configuration
+First, obtain Ozone's sample Docker Compose configuration:
 
 ```bash
-docker run -p 9878:9878 -p 9876:9876 apache/ozone
+# Download the latest Docker Compose configuration file
+curl -O 
https://raw.githubusercontent.com/apache/ozone-docker/refs/heads/latest/docker-compose.yaml
 ```
-This command will pull down the ozone image from docker hub and start all
-ozone services in a single container. <br>
-This container will run the required metadata servers (Ozone Manager, Storage
-Container Manager) one data node  and the S3 compatible REST server
-(S3 Gateway).
-
-# Local multi-container cluster
-
-If you would like to use a more realistic pseudo-cluster where each components
-run in own containers, you can start it with a docker-compose file.
 
-We have shipped a docker-compose and an environment file as part of the
-container image  that is uploaded to docker hub.
+## Start the Cluster
+Start your Ozone cluster with three Datanodes using the following command:
 
-The following commands can be used to extract these files from the image in 
the docker hub.
 ```bash
-docker run apache/ozone cat docker-compose.yaml > docker-compose.yaml
-docker run apache/ozone cat docker-config > docker-config
+docker compose up -d --scale datanode=3
 ```
 
- Now you can start the cluster with docker-compose:
+This command will:
+
+- Automatically pull required images from Docker Hub
+- Create a multi-node cluster with the core Ozone services
+- Start all components in detached mode
+
+## Verify the Deployment
+Check the status of your Ozone cluster components:
 
 ```bash
-docker-compose up -d
+docker compose ps
 ```
 
-If you need multiple datanodes, we can just scale it up:
+You should see output similar to this:
 
-```bash
-docker-compose up -d --scale datanode=3
+```docker-datanode-1   apache/ozone:2.0.0   "/usr/local/bin/dumb…"   datanode  
 14 seconds ago   Up 13 seconds   0.0.0.0:32958->9864/tcp, :::32958->9864/tcp

Review Comment:
   There should be a new line right after using three backticks.



##########
hadoop-hdds/docs/content/start/StartFromDockerHub.md:
##########
@@ -25,55 +25,99 @@ weight: 10
  * AWS CLI (optional)
 {{< /requirements >}}
 
-# Ozone in a Single Container
+# Local multi-container cluster
 
-The easiest way to start up an all-in-one ozone container is to use the latest
-docker image from docker hub:
+## Obtain the Docker Compose Configuration
+First, obtain Ozone's sample Docker Compose configuration:
 
 ```bash
-docker run -p 9878:9878 -p 9876:9876 apache/ozone
+# Download the latest Docker Compose configuration file
+curl -O 
https://raw.githubusercontent.com/apache/ozone-docker/refs/heads/latest/docker-compose.yaml
 ```
-This command will pull down the ozone image from docker hub and start all
-ozone services in a single container. <br>
-This container will run the required metadata servers (Ozone Manager, Storage
-Container Manager) one data node  and the S3 compatible REST server
-(S3 Gateway).
-
-# Local multi-container cluster
-
-If you would like to use a more realistic pseudo-cluster where each components
-run in own containers, you can start it with a docker-compose file.
 
-We have shipped a docker-compose and an environment file as part of the
-container image  that is uploaded to docker hub.
+## Start the Cluster
+Start your Ozone cluster with three Datanodes using the following command:
 
-The following commands can be used to extract these files from the image in 
the docker hub.
 ```bash
-docker run apache/ozone cat docker-compose.yaml > docker-compose.yaml
-docker run apache/ozone cat docker-config > docker-config
+docker compose up -d --scale datanode=3
 ```
 
- Now you can start the cluster with docker-compose:
+This command will:
+
+- Automatically pull required images from Docker Hub
+- Create a multi-node cluster with the core Ozone services
+- Start all components in detached mode
+
+## Verify the Deployment
+Check the status of your Ozone cluster components:
 
 ```bash
-docker-compose up -d
+docker compose ps
 ```
 
-If you need multiple datanodes, we can just scale it up:
+You should see output similar to this:
 
-```bash
-docker-compose up -d --scale datanode=3
+```docker-datanode-1   apache/ozone:2.0.0   "/usr/local/bin/dumb…"   datanode  
 14 seconds ago   Up 13 seconds   0.0.0.0:32958->9864/tcp, :::32958->9864/tcp
+docker-datanode-2   apache/ozone:2.0.0   "/usr/local/bin/dumb…"   datanode   
14 seconds ago   Up 13 seconds   0.0.0.0:32957->9864/tcp, :::32957->9864/tcp
+docker-datanode-3   apache/ozone:2.0.0   "/usr/local/bin/dumb…"   datanode   
14 seconds ago   Up 12 seconds   0.0.0.0:32959->9864/tcp, :::32959->9864/tcp
+docker-om-1         apache/ozone:2.0.0   "/usr/local/bin/dumb…"   om         
14 seconds ago   Up 13 seconds   0.0.0.0:9874->9874/tcp, :::9874->9874/tcp
+docker-recon-1      apache/ozone:2.0.0   "/usr/local/bin/dumb…"   recon      
14 seconds ago   Up 13 seconds   0.0.0.0:9888->9888/tcp, :::9888->9888/tcp
+docker-s3g-1        apache/ozone:2.0.0   "/usr/local/bin/dumb…"   s3g        
14 seconds ago   Up 13 seconds   0.0.0.0:9878->9878/tcp, :::9878->9878/tcp
+docker-scm-1        apache/ozone:2.0.0   "/usr/local/bin/dumb…"   scm        
14 seconds ago   Up 13 seconds   0.0.0.0:9876->9876/tcp, :::9876->9876/tcp
 ```
+## Check the Ozone version
 
-# Running S3 Clients
+```bash
+docker compose exec om ozone version
+```
 
 Once the cluster is booted up and ready, you can verify its status by
 connecting to the SCM's UI at [http://localhost:9876](http://localhost:9876).
 
+![SCM UI Screenshot](ozone-scm.png)
+
+Navigate to the Recon server home page. The Ozone Recon server is at 
[http://localhost:9888](http://localhost:9888), which provides monitoring and 
management capabilities.
+
+![Recon UI Screenshot](ozone-recon.png)
+

Review Comment:
   Maybe add a section to briefly introduce some other important commands that 
are commonly used, such as `docker compose logs` and `docker compose down`.
   For example:
   ```
   ## Other Commonly Used Commands
   View logs from the om.
   docker compose logs om
   
   Stop and remove all containers.
   docker compose down
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to