0

I'm trying to connect redis-cli, but i can't. what is wrong?

enter image description here

ShaSha
  • 589
  • 3
  • 9
  • 24

1 Answers1

1

Redis server is running in the container. The Redis image contains redis-cli binary.

You can connect the redis-cli binary in the running container if you're just hacking around stuff.

docker exec -it `docker ps --filter 'ancestor=redis' --filter 'status=running' --format '{{.ID}}'` redis-cli

Otherwise, follow through with the recommendation to install redis-tools.

Oluwafemi Sule
  • 36,144
  • 1
  • 56
  • 81