Skip to content

Commit 06e47fe

Browse files
committed
Merge branch 'master' of github.com:redis-developer/redis-developer.github.io into master
2 parents 98ffa3f + 5b65205 commit 06e47fe

File tree

1 file changed

+33
-8
lines changed

1 file changed

+33
-8
lines changed

docs/create/docker/index-docker.mdx

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,18 @@ import RedisCard from '@site/src/theme/RedisCard';
2222

2323
Ensure that Docker is installed in your system. Follow https://docs.docker.com/engine/install/ if you haven’t installed yet.
2424

25-
## Run the Redis instance:
25+
## Run the Redis container
2626

27+
Execute the following command to run Redis container in the background in a “detached” mode.
2728

2829
```
2930
$ docker run --name myredis -d redis
3031
```
3132

3233
where,
3334
myredis is the name of Docker container
34-
-d represent daemon mode
35-
redis is the name of Docker Image which it fetches from Docker Hub.
35+
-d represent running Redis in a background in a “detached” mode.
36+
redis is the name of Docker Image that it fetches from Docker Hub.
3637

3738
## Verify if Redis container is running or not:
3839

@@ -53,6 +54,7 @@ $ docker exec -it 241 sh
5354

5455
## Testing Redis container
5556

57+
Execute the below command to test the Redis server:
5658

5759
```
5860
127.0.0.1:6379>ping
@@ -63,6 +65,8 @@ Please note: By default, Redis has 0-15 indexes for databases, you can change th
6365

6466
## Running Redis container with Persistent Storage
6567

68+
In order to enable persistence, you have to pass the "appendonly" option as "yes" as shown in the below example:
69+
6670
```
6771
$ docker run --name some-redis -d redis redis-server --appendonly yes
6872
```
@@ -90,32 +94,53 @@ Note: On Windows, make sure Docker is configured to run Linux-based containers.
9094
docker run -d --cap-add sys_resource --name rp -p 8443:8443 -p 9443:9443 -p 12000:12000 redislabs/redis
9195
```
9296

93-
Open your preferred browser and type https://[IPAddress]:8443 to open Redis Enterprise UI.
97+
In the web browser on the host machine, go to https://localhost:8443 to see the Redis Enterprise Software web console.
98+
99+
## Click on “Setup”
100+
101+
Click Setup to start the node configuration steps.
94102

95-
## Click on “Setup”.
96103

97104
![My Image](images/resoftware-1.png)
98105

99106

100107
## Enter your preferred FQDN
101108

109+
In the Node Configuration settings, enter a cluster FQDN such as demo.redislabs.com. Then click Next button.
110+
102111
![My Image](images/resoftware-2.png)
103112

113+
Enter your license key, if you have one. If not, click the Next button to use the trial version.
114+
104115
## Enter the admin credentials
105116

117+
Enter an email and password for the admin account for the web console.
118+
106119
![My Image](images/resoftware-4.png)
107120

108-
## Select "Single Region"
121+
These credentials are also used for connections to the REST API.
122+
Click OK to confirm that you are aware of the replacement of the HTTPS SSL/TLS certificate on the node, and proceed through the browser warning.
123+
109124

110-
![My Image](images/resoftware-5.png)
111125

112126
## Create a Database:
113127

128+
Select “redis database” and the “single region” deployment, and click Next.
129+
130+
![My Image](images/resoftware-5.png)
131+
132+
Enter a database name such as demodb and click Activate to create your database
133+
114134

115135
![My Image](images/resoftware-7.png)
116136

117-
## Access the database:
137+
You now have a Redis database!
138+
139+
140+
141+
## Connecting using redis-cli
118142

143+
After you create the Redis database, you are ready to store data in your database. redis-cli is a built-in simple command-line tool to interact with Redis database. Run redis-cli, located in the /opt/redislabs/bin directory, to connect to port 12000 and store and retrieve a key in database1
119144

120145
```
121146
$ docker exec -it rp bash

0 commit comments

Comments
 (0)