Skip to content

Commit f5a8f3c

Browse files
authored
DOC-5493 RS: Fixed docker exec redis-cli command example in Docker quickstart (#1989)
1 parent 88a3793 commit f5a8f3c

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

content/operate/rs/7.4/installing-upgrading/quickstarts/docker-quickstart.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,15 @@ Every installation of Redis Enterprise Software includes the command-line tool [
8787
Use [`docker exec`](https://docs.docker.com/engine/reference/commandline/exec/) to start an interactive `redis-cli` session in the running Redis Enterprise Software container:
8888

8989
```sh
90-
$ docker exec -it redis-cli -h redis-12000.cluster.local -p 12000
90+
$ docker exec -it <container_name_or_ID> redis-cli -h <host_or_IP> -p <port>
9191
127.0.0.1:12000> SET key1 123
9292
OK
9393
127.0.0.1:12000> GET key1
9494
"123"
9595
```
9696

97+
To find the container name or ID, use [`docker ps`](https://docs.docker.com/reference/cli/docker/container/ls/) to list running containers.
98+
9799
### Connect from the host environment {#connect-outside-docker}
98100

99101
The database you created uses port `12000`, which is also mapped from the Docker container back to the host environment. This lets you use any method you have available locally to [connect to a Redis database]({{< relref "/operate/rs/7.4/databases/connect/" >}}). Use `localhost` as the `host` and `12000` as the port.

content/operate/rs/7.8/installing-upgrading/quickstarts/docker-quickstart.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,15 @@ Every installation of Redis Enterprise Software includes the command-line tool [
8787
Use [`docker exec`](https://docs.docker.com/engine/reference/commandline/exec/) to start an interactive `redis-cli` session in the running Redis Enterprise Software container:
8888

8989
```sh
90-
$ docker exec -it redis-cli -h redis-12000.cluster.local -p 12000
90+
$ docker exec -it <container_name_or_ID> redis-cli -h <host_or_IP> -p <port>
9191
127.0.0.1:12000> SET key1 123
9292
OK
9393
127.0.0.1:12000> GET key1
9494
"123"
9595
```
9696

97+
To find the container name or ID, use [`docker ps`](https://docs.docker.com/reference/cli/docker/container/ls/) to list running containers.
98+
9799
### Connect from the host environment {#connect-outside-docker}
98100

99101
The database you created uses port `12000`, which is also mapped from the Docker container back to the host environment. This lets you use any method you have available locally to [connect to a Redis database]({{< relref "/operate/rs/7.8/databases/connect/" >}}). Use `localhost` as the `host` and `12000` as the port.

content/operate/rs/installing-upgrading/quickstarts/docker-quickstart.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,15 @@ Every installation of Redis Enterprise Software includes the command-line tool [
8787
Use [`docker exec`](https://docs.docker.com/engine/reference/commandline/exec/) to start an interactive `redis-cli` session in the running Redis Enterprise Software container:
8888

8989
```sh
90-
$ docker exec -it redis-cli -h redis-12000.cluster.local -p 12000
90+
$ docker exec -it <container_name_or_ID> redis-cli -h <host_or_IP> -p <port>
9191
127.0.0.1:12000> SET key1 123
9292
OK
9393
127.0.0.1:12000> GET key1
9494
"123"
9595
```
9696

97+
To find the container name or ID, use [`docker ps`](https://docs.docker.com/reference/cli/docker/container/ls/) to list running containers.
98+
9799
### Connect from the host environment {#connect-outside-docker}
98100

99101
The database you created uses port `12000`, which is also mapped from the Docker container back to the host environment. This lets you use any method you have available locally to [connect to a Redis database]({{< relref "/operate/rs/databases/connect/" >}}). Use `localhost` as the `host` and `12000` as the port.

0 commit comments

Comments
 (0)