You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/create/docker/index-docker.mdx
+10-10
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ import RedisCard from '@site/src/theme/RedisCard';
22
22
23
23
Ensure that Docker is installed in your system. Follow https://docs.docker.com/engine/install/ if you haven’t installed yet.
24
24
25
-
## Run the Redis container
25
+
## Step 1: Run the Redis container
26
26
27
27
Execute the following command to run Redis container in the background in a “detached” mode.
28
28
@@ -35,15 +35,15 @@ myredis is the name of Docker container
35
35
-d represent running Redis in a background in a “detached” mode.
36
36
redis is the name of Docker Image that it fetches from Docker Hub.
37
37
38
-
## Verify if Redis container is running or not:
38
+
## Step 2: Verify if Redis container is running or not:
39
39
40
40
```
41
41
$ docker ps
42
42
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
43
43
241f2411637e redis "docker-entrypoint.s…" 2 minutes ago Up 2 minutes 6379/tcp myredis
44
44
```
45
45
46
-
## Connecting to Redis Server using redis-cli client
46
+
## Step 3: Connect to your database
47
47
48
48
The below CLI uses the first three alphanumeric character of Container ID and opens up "sh" shell of Redis Docker container:
49
49
@@ -52,7 +52,7 @@ $ docker exec -it 241 sh
52
52
# redis-cli
53
53
```
54
54
55
-
## Testing Redis container
55
+
## Step 4: Testing Redis container
56
56
57
57
Execute the below command to test the Redis server:
58
58
@@ -63,7 +63,7 @@ PONG
63
63
64
64
Please note: By default, Redis has 0-15 indexes for databases, you can change that number databases NUMBER in redis.conf.
65
65
66
-
## Running Redis container with Persistent Storage
66
+
## Step 5: Running Redis container with Persistent Storage
67
67
68
68
In order to enable persistence, you have to pass the "appendonly" option as "yes" as shown in the below example:
69
69
@@ -96,23 +96,23 @@ docker run -d --cap-add sys_resource --name rp -p 8443:8443 -p 9443:9443 -p 1200
96
96
97
97
In the web browser on the host machine, go to https://localhost:8443 to see the Redis Enterprise Software web console.
98
98
99
-
## Click on “Setup”
99
+
## Step 1: Click on “Setup”
100
100
101
101
Click Setup to start the node configuration steps.
102
102
103
103
104
104

105
105
106
106
107
-
## Enter your preferred FQDN
107
+
## Step 2: Enter your preferred FQDN
108
108
109
109
In the Node Configuration settings, enter a cluster FQDN such as demo.redislabs.com. Then click Next button.
110
110
111
111

112
112
113
113
Enter your license key, if you have one. If not, click the Next button to use the trial version.
114
114
115
-
## Enter the admin credentials
115
+
## Step 3: Enter the admin credentials
116
116
117
117
Enter an email and password for the admin account for the web console.
118
118
@@ -123,7 +123,7 @@ Click OK to confirm that you are aware of the replacement of the HTTPS SSL/TLS c
123
123
124
124
125
125
126
-
## Create a Database:
126
+
## Step 4: Create a Database:
127
127
128
128
Select “redis database” and the “single region” deployment, and click Next.
129
129
@@ -138,7 +138,7 @@ You now have a Redis database!
138
138
139
139
140
140
141
-
## Connecting using redis-cli
141
+
## Step 5: Connecting using redis-cli
142
142
143
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
0 commit comments