Linux

How to Install RedisInsight on CentOS 7 via Docker

RedisInsight is a free and open-source tool developed by Redis Labs that provides a graphical user interface (GUI) for managing your Redis deployments. This tool helps in visualizing, monitoring, and managing the data stored in Redis.

How to Install RedisInsight on CentOS 7 via Docker

To install RedisInsight on CentOS 7 using Docker, you'll need to pull the official RedisInsight Docker image and run it. Here’s a step-by-step guide:

Step 1: Install Docker

If Docker is not already installed on your CentOS 7 system, install it first by running the following commands:

sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install -y docker-ce
sudo systemctl start docker
sudo systemctl enable docker

Step 2: Pull the RedisInsight Docker Image

Redis Labs provides a Docker image for RedisInsight, which you can easily pull and run. To pull the latest RedisInsight Docker image, use the following command:

docker run -d --name redisinsight -p 5540:5540 redis/redisinsight:latest

If the previous command returns a permission error, ensure that the user with ID = 1000 has the necessary permissions to access the volume provided (redisinsight in the command above).

Next, point your browser to http://localhost:5540.

Redis Insight also provides a health check endpoint at http://localhost:5540/api/health/ to monitor the health of the running container.