Skip to content

Commit addfae0

Browse files
Merge pull request #1616 from redis/DOC-1164
DOC-1164: Clarify docker run options (-h, --name, -p) in Active-Activ…
2 parents b1f4625 + 621b76a commit addfae0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,13 @@ 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.
46+
47+
The `--name` option assigns a name to the container, making it easier to manage and reference with Docker commands.
48+
49+
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.
50+
{{</note>}}
4751

4852
## Set up two clusters
4953

0 commit comments

Comments
 (0)