Automated builds of the image are available on Dockerhub and is the recommended method of installation.
docker pull freelyit/redis-cli:latest
Alternatively you can build the image yourself and specify desired Redis version.
docker build -t freelyit/redis-cli freelyit/redis-cli --build-arg REDIS_VERSION=7.0.12
Try connect redis-cli to localhost with default port :
docker run --name redis-cli -it freelyit/redis-cli
Try to connect redis-cli to specific ip address and port (for example 5002):
docker run --rm --name redis-cli -it freelyit/redis-cli redis-cli -h xxx.xxx.xxx.xxx -p 5002
You can customize the launch command of Redis server by specifying arguments to redis-cli on the docker run command. For example the following command will ping to hostname with port 6379 and will delete container after finish:
docker run --rm --name redis-cli -it freelyit/redis-cli redis-cli -h hostname -p 6379 ping
Content type
Image
Digest
sha256:4161c03ed…
Size
15.2 MB
Last updated
over 1 year ago
docker pull freelyit/redis-cli