redislabs/redis8.0.2-41,7.22.2-41,7.22.0-241,7.8.6-13,7.8.4-95,7.8.2-60,7.4.6-275,7.2.4-122,6.4.2-121,6.4.2-61,6.2.18-71,6.2.12-82,6.2.12-68,6.2.10-129,6.2.8-64,6.2.4-54,6.0.20-97,6.0.20-95,6.0.20-69,6.0.12-58,6.0.8-30,6.0.6-39,5.6.0-31,5.4.14-34,5.4.10-22,5.4.6-17,5.4.4-7,5.4.2-27,5.4.0-19,5.2.2-24,5.2.0-14,5.0.2-30,5.0.0-31,4.5.0-51 on the host, you can run the redis-py container.
Following section assumes you already have python and redis-py configured on the host machine running the container.
You can find the instructions to install redis-py on the github page for redis-py.
Paste the following into a file named "redis_test.py"
import redis r = redis.StrictRedis(host='localhost', port=***, db=0) print ("set key1 123") print (r.set('key1', '123')) print ("get key1") print(r.get('key1'))
Run redis_test.py application to connect to the database and store and retrieve a key.
python redis_test.py
The output should look like the following screen if the connection is successful.
# set key1 123 # True # get key1 # b'123'
Supported Docker Versions:
Docker version 17.x or greater.
Getting Started
Detailed Documentation

manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务