Skip to content

DOC-1164: Clarify docker run options (-h, --name, -p) in Active-Activ… #1616

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 27, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions content/operate/rs/databases/active-active/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ docker run -d --cap-add sys_resource -h rs1_node1 --name rs1_node1 -p 8443:8443
docker run -d --cap-add sys_resource -h rs2_node1 --name rs2_node1 -p 8445:8443 -p 9445:9443 -p 12002:12000 redislabs/redis
```

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.
{{<note>}}
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.

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.
{{</note>}}

## Set up two clusters

Expand Down