Skip to content

Commit ab3b7ad

Browse files
committed
rework docker create right navigation - issue #48
1 parent b2d5879 commit ab3b7ad

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

Diff for: docs/create/docker/index-docker.mdx

+16-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: index-docker
3-
title: Install and create Redis database using Docker
3+
title: Run Redis using Docker
44
sidebar_label: Docker
55
slug: /create/docker/
66
---
@@ -18,11 +18,13 @@ import RedisCard from '@site/src/theme/RedisCard';
1818
]}>
1919
<TabItem value="Redis">
2020

21-
## Pre-requisite:
21+
## Redis
22+
23+
### Pre-requisite:
2224

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

25-
## Step 1: Run the Redis container
27+
### Step 1: Run the Redis container
2628

2729
Execute the following command to run Redis container in the background in a “detached” mode.
2830

@@ -35,15 +37,15 @@ myredis is the name of Docker container
3537
-d represent running Redis in a background in a “detached” mode.
3638
redis is the name of Docker Image that it fetches from Docker Hub.
3739

38-
## Step 2: Verify if Redis container is running or not:
40+
### Step 2: Verify if Redis container is running or not:
3941

4042
```
4143
$ docker ps
4244
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4345
241f2411637e redis "docker-entrypoint.s…" 2 minutes ago Up 2 minutes 6379/tcp myredis
4446
```
4547

46-
## Step 3: Connect to your database
48+
### Step 3: Connect to your database
4749

4850
The below CLI uses the first three alphanumeric character of Container ID and opens up "sh" shell of Redis Docker container:
4951

@@ -52,7 +54,7 @@ $ docker exec -it 241 sh
5254
# redis-cli
5355
```
5456

55-
## Step 4: Testing Redis container
57+
### Step 4: Testing Redis container
5658

5759
Execute the below command to test the Redis server:
5860

@@ -63,7 +65,7 @@ PONG
6365

6466
Please note: By default, Redis has 0-15 indexes for databases, you can change that number databases NUMBER in redis.conf.
6567

66-
## Step 5: Running Redis container with Persistent Storage
68+
### Step 5: Running Redis container with Persistent Storage
6769

6870
In order to enable persistence, you have to pass the "appendonly" option as "yes" as shown in the below example:
6971

@@ -77,9 +79,10 @@ If persistence is enabled, data is stored in the VOLUME /data, which can be used
7779
</TabItem>
7880
<TabItem value="Redis Enterprise">
7981

82+
## Redis Enterprise
8083

8184

82-
## Pre-requisite
85+
### Pre-requisite
8386

8487
Ensure that Docker is installed in your system.
8588

@@ -96,23 +99,23 @@ docker run -d --cap-add sys_resource --name rp -p 8443:8443 -p 9443:9443 -p 1200
9699

97100
In the web browser on the host machine, go to https://localhost:8443 to see the Redis Enterprise Software web console.
98101

99-
## Step 1: Click on “Setup”
102+
### Step 1: Click on “Setup”
100103

101104
Click Setup to start the node configuration steps.
102105

103106

104107
![My Image](images/resoftware-1.png)
105108

106109

107-
## Step 2: Enter your preferred FQDN
110+
### Step 2: Enter your preferred FQDN
108111

109112
In the Node Configuration settings, enter a cluster FQDN such as demo.redislabs.com. Then click Next button.
110113

111114
![My Image](images/resoftware-2.png)
112115

113116
Enter your license key, if you have one. If not, click the Next button to use the trial version.
114117

115-
## Step 3: Enter the admin credentials
118+
### Step 3: Enter the admin credentials
116119

117120
Enter an email and password for the admin account for the web console.
118121

@@ -123,7 +126,7 @@ Click OK to confirm that you are aware of the replacement of the HTTPS SSL/TLS c
123126

124127

125128

126-
## Step 4: Create a Database:
129+
### Step 4: Create a Database:
127130

128131
Select “redis database” and the “single region” deployment, and click Next.
129132

@@ -138,7 +141,7 @@ You now have a Redis database!
138141

139142

140143

141-
## Step 5: Connecting using redis-cli
144+
### Step 5: Connecting using redis-cli
142145

143146
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
144147

0 commit comments

Comments
 (0)