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.

在Docker中基于Alpine的映像上安装Redis
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- dongyin2885 2018-04-28 16:37关注
Try using the fully qualified path of the command -
/usr/bin/redis-cli
.本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报