2.26. Docker install Redis

发布时间 : 2025-10-25 13:32:35 UTC      

Page Views: 8 views

Redis is an open source NoSQL database written in ANSI C language, supports network, can be memory-based and persistent, Key-Value NoSQL database, and provides API in multiple languages.

2.26.1. 1. View the available Redis versions

Access Redis Mirror Library address: https://hub.docker.com/_/redis?tab=tags .

You can view other versions of Redis through Sort by. The default is the latest version. redis:latest .

` <../wp-content/uploads/2016/06/docker-redis1.png>` __

You can also find other versions you want in the drop-down list:

` <../wp-content/uploads/2016/06/docker-redis2.png>` __

In addition, we can use the docker search redis command to view the available versions:

$ docker search redis NAME DESCRIPTION STARS OFFICIAL AUTOMATED redis Redis is an open source ... 2321 [OK] sameersbn/redis 32 [OK] torusware/speedus-redis Always updated official ... 29 [OK] bitnami/redis Bitnami Redis Docker Image 22 [OK] anapsix/redis 11MB Redis server image ... 6 [OK] webhippie/redis Docker images for redis 4 [OK] clue/redis-benchmark A minimal docker image t... 3 [OK] williamyeh/redis Redis image for Docker 3 [OK] unblibraries/redis Leverages phusion/baseim... 2 [OK] greytip/redis redis 3.0.3 1 [OK] servivum/redis Redis Docker Image 1 [OK] ... 

2.26.2. 2. Take the latest version of Redis image

Here we pull the official image of the latest version:

$ docker pull redis:latest 

` <../wp-content/uploads/2016/06/docker-redis3.png>` __

2.26.3. 3. View the local image

Use the following command to see if redis is installed:

$ docker images 

` <../wp-content/uploads/2016/06/docker-redis4.png>` __

You can see in the figure above that we have installed the latest version (latest) of the redis image.

2.26.4. 4. Run the container

After the installation is complete, we can run the redis container using the following command:

$ docker run -itd --name redis-test -p 6379:6379 redis 

Parameter description:

  • -p 6379:6379 Map port 6379 of CCS to port 6379 of host The service of Redis can be accessed directly from outside through the host ip:6379.

` <../wp-content/uploads/2016/06/docker-redis5.png>` __

2.26.5. 5. Installation succeeded

Finally, we can pass through docker ps Command to view the running information of the container:

` <../wp-content/uploads/2016/06/docker-redis6.png>` __

Then we use the redis service through the redis-cli connection test.

$ docker exec -it redis-test /bin/bash 

` <../wp-content/uploads/2016/06/docker-redis7.png>` __

《地理信息系统原理、技术与方法》  97

最近几年来,地理信息系统无论是在理论上还是应用上都处在一个飞速发展的阶段。 GIS被应用于多个领域的建模和决策支持,如城市管理、区划、环境整治等等,地理信息成为信息时代重要的组成部分之一; “数字地球”概念的提出,更进一步推动了作为其技术支撑的GIS的发展。 与此同时,一些学者致力于相关的理论研究,如空间感知、空间数据误差、空间关系的形式化等等。 这恰好说明了地理信息系统作为应用技术和学科的两个方面,并且这两个方面构成了相互促进的发展过程。