dockergoredisalpine-linux

Install Redis on Alpine based image in docker


I am trying to install Redis on the golang:1.10.1-alpine3.7 image. I tried RUN apk add --no-cache redis, but when I tried to run the redis-cli command, I get an exit status 127, which means the given command in not found. I would like to know how I would be able to run the redis-cli command.


Solution

  • Try using the fully qualified path of the command - /usr/bin/redis-cli.