GithubHelp home page GithubHelp logo

redis-cli's Introduction

Getting started

Installation

Automated builds of the image are available on Dockerhub and is the recommended method of installation.

docker pull goodsmileduck/redis-cli:latest

Alternatively you can build the image yourself and specify desired Redis version.

docker build -t goodsmileduck/redis-cli github.com/goodsmileduck/redis-cli --build-arg REDIS_VERSION=6.0.4

Quickstart

Try connect redis-cli to localhost with default port :

docker run --name redis-cli -it goodsmileduck/redis-cli

Command-line arguments

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 goodsmileduck/redis-cli redis-cli -h hostname -p 6379 ping

redis-cli's People

Contributors

aasaru avatar goodsmileduck avatar philetaylor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

redis-cli's Issues

TLS support?

I'm trying to use this image to connect to a managed Redis instance on Azure, but I keep getting Error: Server closed the connection whatever I try to do. Could the problem be that there is a TLS mismatch?

> docker run --rm --name redis-cli -it goodsmileduck/redis-cli redis-cli -h <redacted>.redis.cache.windows.net -p 6380 -a <redacted> ping
Error: Server closed the connection

If I don't run a command at the docker incantation it seems to connect, but I get the same errors when trying to execute any commands:

> docker run --rm --name redis-cli -it goodsmileduck/redis-cli redis-cli -h <redacted>.redis.cache.windows.net -p 6380 -a <redacted>
<redacted>.redis.cache.windows.net:6380> ping
Error: Server closed the connection
(0.88s)
<redacted>.redis.cache.windows.net:6380> ping foo
Error: Server closed the connection
(5.77s)
<redacted>.redis.cache.windows.net:6380> KEYS
Error: Server closed the connection
(23.13s)
<redacted>.redis.cache.windows.net:6380> SCAN 0 COUNT 1000
Error: Server closed the connection
(3.24s)

I understand that the CLI iself does not support TLS, but the recommendation is to use something like stunnel (more info here). Would it be feasible to install something like that in this docker image?

can't run with arguments

Command: docker run --name=redis-cli -it --rm goodsmileduck/redis-cli -h localhost -p 5050 ping

Response: Error response from daemon: Cannot start container 66d5ba6734f7da6b807c0f2004aa8b543cbf91dcd521b405d8465b5a56543d05: [8] System error: exec: "-h": executable file not found in $PATH

Error in documentation

documentation example should read as :
docker run --rm --name redis-cli -it goodsmileduck/redis-cli redis-cli -h hostname -p 6379 ping

The current instruction does not work.
Additionally there is another example in which has an extra - before the -it command
docker run --name redis-cli -it goodsmileduck/redis-cli

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.