Making a Manual Connection to Redis Server
Explore how to manually connect to a Redis server running in a Docker container using the redis-cli command-line tool. Understand the process of running a temporary container to interact with Redis, verifying its operation and learning the difference between using docker-compose run and exec commands. This lesson helps you gain hands-on experience in managing Redis within a Docker environment for Rails applications.
Manually connecting to the Redis server
We have just started Redis using Compose and have seen from the output that it is running. However, since we are still getting familiar with Docker, let’s manually connect to the Redis server and interact with it to prove to ourselves that it really does work.
Using Redis command-line interface
A quick way to do this manually is by using the Redis command-line interface redis-cli. We can leverage the same redis ...