Skip to content

Commit e777385

Browse files
DOC-1164: Clarify docker run options (-h, --name, -p) in Active-Active getting started guide
1 parent 73fda7e commit e777385

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

content/operate/rs/databases/active-active/get-started.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ docker run -d --cap-add sys_resource -h rs1_node1 --name rs1_node1 -p 8443:8443
4141
docker run -d --cap-add sys_resource -h rs2_node1 --name rs2_node1 -p 8445:8443 -p 9445:9443 -p 12002:12000 redislabs/redis
4242
```
4343

44-
The **-p** options map the Cluster Manager UI port (8443), REST API port (9443), and
45-
database access port differently for each container to make sure that all
46-
containers can be accessed from the host OS that is running the containers.
44+
{{<note>}}
45+
The `-h` option sets the hostname of the container, which is important for cluster setup and identification. The `--name` option assigns a name to the container, making it easier to manage and reference with Docker commands.
46+
47+
The **-p** options map the Cluster Manager UI port (8443), REST API port (9443), and database access port differently for each container to make sure that all containers can be accessed from the host OS that is running the containers.
48+
{{</note>}}
4749

4850
## Set up two clusters
4951

0 commit comments

Comments
 (0)