1M+
redis-pySample docker image based on python3 with redis-py for testing simple python based Redis apps.
docker run -d --cap-add sys_resource --name rp -p 8443:8443 -p 9443:9443 -p 12000:12000 redislabs/redis
rladmin tool and create cluster command.docker exec -d --privileged rp "/opt/redislabs/bin/rladmin" cluster create name cluster.local username [email protected] password redislabs123
curl -k -u "[email protected]:redislabs123" --request POST --url "https://localhost:9443/v1/bdbs" --header 'content-type: application/json' --data '{"name":"db1","type":"redis","memory_size":102400,"port":12000}'
Note: Redis Enterprise may take a few seconds to start depending on the HW you are using to run the container. if you receive the following message: "503 Service Unavailable", wait a few more seconds and repeat step-2 and step3 again.
docker exec -i rp ifconfig eth0 | grep "inet addr" | cut -d":" -f 2 | cut -d" " -f 1
docker run -d --name redis-python redislabs/redis-py
Simply run test_db.py with ip address and port for the Redis database to test SET & GET commands:
docker exec -it redis-python bash
# python test_db.py 172.17.0.2 12000
# Connecting to host=172.17.0.2 and port=12000
# Set key 'key1' to value '123' on host=172.17.0.3 and port=12000
# Get key 'key1' and validate value is '123' on host=172.17.0.3 and port=12000
# DB TEST PASSED
Content type
Image
Digest
Size
113.9 MB
Last updated
over 8 years ago
docker pull redislabs/redis-pyPulls:
2,013
Last week