Alpine Linux v3.6 with redis v3.2.8 installed at /usr/sbin. 5MB.
50K+
A handy basic image comprising of;
I'd expect you use this image as a simple, lightweight means of using the Redis CLI. A full Redis installation is present (as the CLI can't be installed by itself) but I don't intend this image to be used to run Redis itself.
Use this command to pull the image manually before runtime:
sudo docker pull itsthenetwork/alpine-redis-cli:latest
This command will start the container interactively and attempt to connect to example.com on port 6379 and send a ping. The container will be automatically removed when the command completes.
sudo docker run -it --rm itsthenetwork/alpine-redis-cli -h example.com -p 6379 ping
To do this against a Redis instance running on the same host, you should use it's hostname or IP address. If you want to connect to localhost, you'll need to add the host mode network parameter:
sudo docker run -it --rm --net=host itsthenetwork/alpine-redis-cli -h localhost -p 6379 ping
If you expect to use this image often, perhaps use an alias at the CLI or in your ~/.bashrc file:
alias redis-cli="sudo docker run -it --rm itsthenetwork/alpine-redis-cli"
You'll find the Dockerfile used to build this image at the root of the file system.
If you wanted to install additional packages and build your own image based upon this one you'd start your Dockerfile like this:
FROM itsthenetwork/alpine-redis-cli:latest
RUN apk -add --update --verbose --no-cache package_name package_name
...
Content type
Image
Digest
Size
5 MB
Last updated
almost 9 years ago
docker pull itsthenetwork/alpine-redis-cli