在 Docker 上安装

如何在 Docker 上安装 Redis Insight

Redis 洞察

本教程介绍如何在 Docker 上安装 Redis Insight,以便您可以在开发中使用 Redis Insight。 请参阅有关在 AWS 上安装 Redis Insight 的单独指南。

安装 Docker

第一步是为您的作系统安装 Docker

运行 Redis Insight Docker 镜像

您可以使用下面描述的选项之一安装 Redis Insight。

  1. 如果您不想保留 Redis Insight 数据:
docker run -d --name redisinsight -p 5540:5540 redis/redisinsight:latest
  1. If you want to persist your Redis Insight data, first attach the Docker volume to the /data path and then run the following command:
docker run -d --name redisinsight -p 5540:5540 redis/redisinsight:latest -v redisinsight:/data

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.

RATE THIS PAGE
Back to top ↑