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
+33-8Lines changed: 33 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -22,17 +22,18 @@ 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 instance:
25
+
## Run the Redis container
26
26
27
+
Execute the following command to run Redis container in the background in a “detached” mode.
27
28
28
29
```
29
30
$ docker run --name myredis -d redis
30
31
```
31
32
32
33
where,
33
34
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.
36
37
37
38
## Verify if Redis container is running or not:
38
39
@@ -53,6 +54,7 @@ $ docker exec -it 241 sh
53
54
54
55
## Testing Redis container
55
56
57
+
Execute the below command to test the Redis server:
56
58
57
59
```
58
60
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
63
65
64
66
## Running Redis container with Persistent Storage
65
67
68
+
In order to enable persistence, you have to pass the "appendonly" option as "yes" as shown in the below example:
69
+
66
70
```
67
71
$ docker run --name some-redis -d redis redis-server --appendonly yes
68
72
```
@@ -90,32 +94,53 @@ Note: On Windows, make sure Docker is configured to run Linux-based containers.
90
94
docker run -d --cap-add sys_resource --name rp -p 8443:8443 -p 9443:9443 -p 12000:12000 redislabs/redis
91
95
```
92
96
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.
94
102
95
-
## Click on “Setup”.
96
103
97
104

98
105
99
106
100
107
## Enter your preferred FQDN
101
108
109
+
In the Node Configuration settings, enter a cluster FQDN such as demo.redislabs.com. Then click Next button.
110
+
102
111

103
112
113
+
Enter your license key, if you have one. If not, click the Next button to use the trial version.
114
+
104
115
## Enter the admin credentials
105
116
117
+
Enter an email and password for the admin account for the web console.
118
+
106
119

107
120
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
+
109
124
110
-

111
125
112
126
## Create a Database:
113
127
128
+
Select “redis database” and the “single region” deployment, and click Next.
129
+
130
+

131
+
132
+
Enter a database name such as demodb and click Activate to create your database
133
+
114
134
115
135

116
136
117
-
## Access the database:
137
+
You now have a Redis database!
138
+
139
+
140
+
141
+
## Connecting using redis-cli
118
142
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